Add Prospector (Python Static Analysis) config and run script.

This commit is contained in:
Andris Raugulis 2016-09-08 14:54:40 +03:00
parent 3f6a8eb7ba
commit 71a18e153c
2 changed files with 17 additions and 0 deletions

8
test/prospector.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
_cdir=$(cd -- "$(dirname "$0")" && pwd)
type prospector > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "err: prospector (Python Static Analysis) not found."
exit 1
fi
prospector --profile-path "${_cdir}" -P prospector "${_cdir}/../ssh-audit.py"

9
test/prospector.yml Normal file
View File

@ -0,0 +1,9 @@
inherits:
- strictness_veryhigh
pep8:
disable:
- W191
- W293
- E501
- E221