From 71a18e153c2a019d76501ff380d7f003bf3debb4 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 8 Sep 2016 14:54:40 +0300 Subject: [PATCH] Add Prospector (Python Static Analysis) config and run script. --- test/prospector.sh | 8 ++++++++ test/prospector.yml | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100755 test/prospector.sh create mode 100644 test/prospector.yml 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