tests/test-check-jshint.t
author Martin von Zweigbergk <martinvonz@google.com>
Sun, 17 Feb 2019 09:12:30 -0800
changeset 41757 980e05204ed8
parent 35605 45a816361926
permissions -rw-r--r--
subrepo: use root-repo-relative path from `hg files` with ui.relative-paths=no The fix is to pass in a "subuipathfn" as we do everywhere else. Differential Revision: https://phab.mercurial-scm.org/D5978

#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' \
  > 2>/dev/null \
  > | xargs jshint