passerelle/pylint.sh

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

13 lines
294 B
Bash
Raw Normal View History

2016-06-09 16:35:46 +02:00
#!/bin/sh
2018-11-28 17:00:44 +01:00
set -e
2016-06-09 16:35:46 +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