pylint has been a great tool to get the initial code base into shape but since then we mostely false postives. All those warnings needed to be annonated. This allong wouldn't be reason enough to remove it. The main problem is that the pylint version on gitlab is updated in the back and suddenly we get new warnings which are bogus. Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
12 lines
241 B
Bash
Executable File
12 lines
241 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ERROR=0
|
|
|
|
echo "Checking with pycodestyle"
|
|
pycodestyle --ignore=W503,W606 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1)
|
|
|
|
echo "Checking with doc8"
|
|
doc8 $1/docs --ignore-path $1/docs/_build || ERROR=$(expr $ERROR + 4)
|
|
|
|
exit $ERROR
|