Skip to content

Commit 6c034a0

Browse files
committed
Fix complexity check
1 parent b279406 commit 6c034a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/smoke_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ check_complexity () {
6161
echo "Report written to $report_file"
6262
fi
6363

64-
top=$(echo "$out" | head -n 1 | sed 's/ \+/ /g')
64+
out1=$(echo "$out" | grep -v "ExperimentalWarning")
65+
top=$(echo "$out1" | head -n 1 | sed 's/ \+/ /g')
6566
top_definition=$(echo "$top" | cut -d' ' -f1)
6667
top_definition_line=$(grep -n "$top_definition:" grammar.js | head -n 1 | cut -d : -f 1)
6768
actual=$(echo "$top" | cut -d' ' -f2)

0 commit comments

Comments
 (0)