add rule to find groovy scripts with non standard indentation

master
melvinzhang 2015-04-27 19:23:20 +08:00
parent 9f790f4c89
commit 094967c0da
1 changed files with 3 additions and 0 deletions

View File

@ -788,3 +788,6 @@ images.url: missing_images
model_usage:
for i in `grep "class [A-Za-z]*" -hro src/magic/model | sed 's/class //'`; do echo -en "$$i\t"; grep $$i -lr src release/Magarena/scripts | wc -l; done > $@
fix_indentation:
grep "^[ ]*" -r release/Magarena/scripts/*.groovy -o | awk -F':' 'length($2) < 15 {print $1 "\t" length($2) % 4}' | grep -v 0 | cut -f1 | uniq | vim -