wcs/pylint.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
289 B
Bash
Raw Normal View History

2019-09-26 15:25:12 +02:00
#!/bin/sh
set -e -x
env
if [ -f /var/lib/jenkins/pylint.wcs.rc ]; then
PYLINT_RC=/var/lib/jenkins/pylint.wcs.rc
elif [ -f pylint.wcs.rc ]; then
PYLINT_RC=pylint.wcs.rc
else
echo No pylint RC found
exit 0
fi
pylint -f parseable --rcfile ${PYLINT_RC} "$@" | tee pylint.out || /bin/true