File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -517,15 +517,16 @@ SOLTMPDIR=$(mktemp -d)
517
517
opts=()
518
518
# We expect errors if explicitly stated, or if imports
519
519
# are used (in the style guide)
520
- if grep -E " This will not compile|import \" " " $f " > /dev/null
520
+ if grep -E " // This will not compile" " $f " > /dev/null ||
521
+ sed -e ' s|//.*||g' " $f " | grep -E " import \" " > /dev/null
521
522
then
522
523
opts=(--expect-errors)
523
524
fi
524
- if grep " This will report a warning" " $f " > /dev/null
525
+ if grep " // This will report a warning" " $f " > /dev/null
525
526
then
526
527
opts+=(--expect-warnings)
527
528
fi
528
- if grep " This may report a warning" " $f " > /dev/null
529
+ if grep " // This may report a warning" " $f " > /dev/null
529
530
then
530
531
opts+=(--ignore-warnings)
531
532
fi
You can’t perform that action at this time.
0 commit comments