Slight changes to codecheck utility
- Style fixes
- Supress some linting warnings
- Add project root to path
Change-Id: Ic533b939704194752df9f41a77a8e2264b6fa76f
diff --git a/TestON/bin/codecheck b/TestON/bin/codecheck
index e3769da..51b9649 100755
--- a/TestON/bin/codecheck
+++ b/TestON/bin/codecheck
@@ -30,16 +30,16 @@
autopep8 --in-place -a -a $file --ignore=$EXCLUDE,$P8IGN
elif [ -z "$2" ] || [ "$2" = "--reason" ] || [ "$2" = "--relaxed" ]; then
echo "Running pyflakes..."
- #Pyflakes is a source checker. It doesn't run the code so it is safer than other programs
- #ignoring some errors due to TestON
- pyflakes $1 | grep -v "undefined name 'main'" | grep -v "undefined name 'utilities'"
+ # Pyflakes is a source checker. It doesn't run the code so it is safer than other programs
+ # ignoring some errors due to TestON
+ pyflakes $1 | grep -v "undefined name 'main'" | grep -v "undefined name 'utilities'" | grep -v "unable to detect undefined names"
echo "Running pylint..."
- #Pylint is a static code checker
- #ignoring some errors due to TestON
+ # Pylint is a static code checker
+ # ignoring some errors due to TestON
pylint -E --rcfile=$(dirname "${BASH_SOURCE}")/.pylint $1 | grep -v "Undefined variable 'main'" | grep -v "Undefined variable 'utilities'"
echo "Running PEP8..."
- #PEP8 is a the most common python coding style standard
+ # PEP8 is a the most common python coding style standard
if [ "$2" = "--reason" ]; then
pep8 --repeat --show-source --show-pep8 --ignore=$P8IGN $1
elif [ "$2" = "--relaxed" ]; then