view tests/test-check-jshint.t @ 35254:9c99541e3d56

hgweb: create Graph methods using a prototype This way it's possible to call the original methods even if they were overridden.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 06 Dec 2017 12:01:07 +0800
parents 5d4369079c86
children 45a816361926
line wrap: on
line source

#require test-repo jshint hg10

  $ . "$TESTDIR/helpers-testrepo.sh"

run jshint on all tracked files ending in .js except vendored dependencies

  $ cd "`dirname "$TESTDIR"`"

  $ testrepohg locate 'set:**.js' \
  > -X mercurial/templates/static/excanvas.js \
  > 2>/dev/null \
  > | xargs jshint