terminator/terminatorlib/pylint.sh

12 lines
286 B
Bash
Raw Normal View History

2009-08-11 22:26:18 +00:00
#!/bin/bash
for file in *.py; do
line=$(pylint $file 2>&1 | grep "^Your code has been rated")
rating=$(echo $line | cut -f 7 -d ' ')
previous=$(echo $line | cut -f 10 -d ' ')
if [ "$rating" != "10.00/10" ]; then
echo "$file rated $rating (previously $previous)"
fi
2009-08-11 22:26:18 +00:00
done