tests/test-check-jshint.t
author Yuya Nishihara <yuya@tcha.org>
Thu, 26 Mar 2020 22:31:17 +0900
changeset 44661 67f757ed86e0
parent 35605 45a816361926
permissions -rw-r--r--
dagop: fix subsetparentswalker to set p1/p2 chains at merge revision The previous implementation was wrong because the '1'/'2' key would be appended at a fork revision. Since we traverse the graph from heads, a merge revision is actually a branching point, where the sort key must be generated.

#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