Files
OpenSK/tools/run_pylint.sh
2020-02-28 15:52:09 +01:00

19 lines
366 B
Bash
Executable File

#!/usr/bin/env bash
SUCCESS=0
# Ensure we are at the project root directory
cd $(readlink -f $(dirname $0))/..
for file in `find . ! -path "./third_party/*" -type f -name '*.py'`
do
# Output header for our custom matcher on Github workflow
echo "PYLINT:${file}"
if ! pylint --rcfile=.pylintrc --score=n "$file"
then
SUCCESS=1
fi
done
exit $SUCCESS