authentic/pylint.sh

14 lines
297 B
Bash
Raw Normal View History

2019-05-10 12:42:29 +02:00
#!/bin/bash
set -e
2018-06-29 09:55:42 +02:00
if [ -f /var/lib/jenkins/pylint.django.rc ]; then
PYLINT_RC=/var/lib/jenkins/pylint.django.rc
elif [ -f pylint.django.rc ]; then
PYLINT_RC=pylint.django.rc
else
echo No pylint RC found
exit 0
fi
pylint -f parseable --rcfile ${PYLINT_RC} "$@" | tee pylint.out || /bin/true