2022-01-26 10:19:36 +01:00
|
|
|
#!/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
|
2023-05-25 09:24:28 +02:00
|
|
|
pylint -f parseable --rcfile ${PYLINT_RC} "$@" | tee pylint.out; test $PIPESTATUS -eq 0
|