Skip to content

Commit

Permalink
add script to print untested ids
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Aug 29, 2024
1 parent 8f74710 commit 05bb6a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/get_tested_ids.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
#!/bin/bash

if [[ $1 == "-v" ]]; then
if [[ $1 == "lines" ]]; then
grep -nRE --exclude-dir=localizations,localizations_src "// (CL|BC): .*: .*-.*" checker/* | cut -d":" -f1,2,5
else
elif [[ $1 == "ids" ]]; then
grep -nRE --exclude-dir=localizations,localizations_src '// (CL|BC): .*: .*-.*' checker/* | cut -d: -f5 | tr , '\n' | awk '{$1=$1};1' | sort -u
elif [[ $1 == "diff" ]]; then
diff --side-by-side <(grep -nRE --exclude-dir=localizations,localizations_src '// (CL|BC): .*: .*-.*' checker/* | cut -d: -f5 | tr , '\n' | awk '{$1=$1};1' | sort -u) <(cat checker/localizations_src/en/messages.yaml | sed '/# warnings/q' | cut -d":" -f1 | sort -n)
fi

0 comments on commit 05bb6a2

Please sign in to comment.