Skip to content

Commit 6f179e9

Browse files
committed
Tool for debugging rules
1 parent b58137f commit 6f179e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/iterate-rules.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Debugging tool for identifying which rules cause what output
3+
# Usage: iteraterules.sh /path/to/rules/file /path/to/code
4+
for x in `seq 0 $(wc -l "$1"|cut -d' ' -f1)`; do
5+
echo -n "$1 +$x - "
6+
head -$x "$1" | tail -1 | graudit -B -d - "$2" | wc -l
7+
done

0 commit comments

Comments
 (0)