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


OLDREV=$1
NEWREV=$2
TRG_BRANCH=$3

/usr/bin/git diff --name-only $OLDREV $NEWREV --diff-filter=ACM | \
 grep ".py$" | \
 xargs -r -I{} /usr/bin/python -m pylint --rcfile ${WORKSPACE}/git/.pylintrc  {}

exit $?