summaryrefslogtreecommitdiffstats
path: root/pylint.sh
blob: ec5303434c00fd1adcdc1076a5b0c09649c904ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

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