mandayejs / pylint.sh @ main
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
set -e -x |
4 |
env
|
5 |
if [ -f /var/lib/jenkins/pylint.django.rc ]; then |
6 |
PYLINT_RC=/var/lib/jenkins/pylint.django.rc |
7 |
elif [ -f pylint.django.rc ]; then |
8 |
PYLINT_RC=pylint.django.rc |
9 |
else
|
10 |
echo No pylint RC found |
11 |
exit 0
|
12 |
fi
|
13 |
|
14 |
test -f pylint.out && cp pylint.out pylint.out.prev |
15 |
pylint -f parseable --rcfile ${PYLINT_RC} "$@" | tee pylint.out || /bin/true |
16 |
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true |