File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,14 @@ if github_annotate_is_on; then
4949 DETAILS=$( echo " ${line} " | cut -d: -f3- |
5050 sed -e ' s/^[ \t]*//' -e ' s/[ \t]*$//' )
5151
52- # parse if warning (errors don't have a label)
53- if echo " $DETAILS " | grep -q " ^warning: " ; then
52+ if echo " $DETAILS " | grep -q " longer than 100 characters" &&
53+ [ -n " sed -n " ${LINENUM} p" " $FILENAME " | sed -n '/\/\*\*</p'" ]
54+ then # ignore inline comments exceeding line length
55+ elif echo " $DETAILS " | grep -q " longer than 100 characters" &&
56+ [ -n " sed -n " ${LINENUM} p" " ${FILENAME} " | sed -n '/^\s*[*/].*https*:\/\//p'" ]
57+ then # ignore lines containing http:// or https:// exceeding line length
58+ elif echo " $DETAILS " | grep -q " ^warning: " ; then
59+ # parse if warning (errors don't have a label)
5460 DETAILS=$( echo " $DETAILS " | sed ' s/^warning: //' )
5561 github_annotate_warning " $FILENAME " " $LINENUM " " $DETAILS "
5662 else
You can’t perform that action at this time.
0 commit comments