Skip to content

Commit eda7a0c

Browse files
committed
update unsafe stats a bit
1 parent 59d09b2 commit eda7a0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unsafe-stats.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22
echo unsafe counts:
33
rg "unsafe[ \{]" ./ --count | rg "(.*)?:(.*)" -o -r "\$2 \$1" | sort --numeric
4+
echo
45
echo static mut counts:
56
rg "static mut" ./ --count | rg "(.*)?:(.*)" -o -r "\$2 \$1" | sort --numeric
7+
echo
68
echo total unsafe: $(rg "unsafe[ \{]" ./ | wc -l)
7-
echo total static mut: $(rg "static mut" ./ | wc -l)
9+
echo total static mut: $(rg "static mut" ./ | wc -l)

0 commit comments

Comments
 (0)