2009-08-11 22:26:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for file in *.py; do
|
2009-12-09 13:32:35 +00:00
|
|
|
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
|