Skip to content

Instantly share code, notes, and snippets.

@cvan
Forked from andymckay/gist:5146434
Created March 12, 2013 20:22
Show Gist options
  • Save cvan/5146672 to your computer and use it in GitHub Desktop.
Save cvan/5146672 to your computer and use it in GitHub Desktop.
for file in `git diff-tree --no-commit-id --name-only -r HEAD | sort | uniq`
do
if [ ${file: -3} == ".py" ]
then
flake8 --ignore=E121,E123,E124,E125,E126,E127,E128 $file
fi
if [ ${file: -3} == ".js" ]
then
jshint $file
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment