pylint.sh 271 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. OLDREV=$1
  3. NEWREV=$2
  4. TRG_BRANCH=$3
  5. PYTHON=/var/lib/jenkins/python27/bin/python
  6. /usr/bin/git diff --name-only $OLDREV $NEWREV --diff-filter=ACM | \
  7. grep ".py$" | \
  8. xargs -r -I{} ${PYTHON} -m pylint --rcfile ${WORKSPACE}/git/.pylintrc {}
  9. exit $?