diff --git a/test/prospector.sh b/test/prospector.sh new file mode 100755 index 0000000..e420aff --- /dev/null +++ b/test/prospector.sh @@ -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" diff --git a/test/prospector.yml b/test/prospector.yml new file mode 100644 index 0000000..f3373b7 --- /dev/null +++ b/test/prospector.yml @@ -0,0 +1,9 @@ +inherits: + - strictness_veryhigh + +pep8: + disable: + - W191 + - W293 + - E501 + - E221