We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59d09b2 commit eda7a0cCopy full SHA for eda7a0c
unsafe-stats.sh
@@ -1,7 +1,9 @@
1
#!/usr/bin/env bash
2
echo unsafe counts:
3
rg "unsafe[ \{]" ./ --count | rg "(.*)?:(.*)" -o -r "\$2 \$1" | sort --numeric
4
+echo
5
echo static mut counts:
6
rg "static mut" ./ --count | rg "(.*)?:(.*)" -o -r "\$2 \$1" | sort --numeric
7
8
echo total unsafe: $(rg "unsafe[ \{]" ./ | wc -l)
-echo total static mut: $(rg "static mut" ./ | wc -l)
9
+echo total static mut: $(rg "static mut" ./ | wc -l)
0 commit comments