Skip to content

Commit

Permalink
Fix complexity check
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Nov 21, 2024
1 parent b279406 commit 6c034a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ check_complexity () {
echo "Report written to $report_file"
fi

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

0 comments on commit 6c034a0

Please sign in to comment.