tests/test-check-code-hg.t
branchstable
changeset 16156 e7746fefd1ef
parent 16069 f680ed10e2c4
child 16166 5b0a4383cd5e
child 16179 be6ac2ecc7f8
equal deleted inserted replaced
16155:1b2b42e866be 16156:e7746fefd1ef
     1   $ check_code="$TESTDIR"/../contrib/check-code.py
     1   $ check_code="$TESTDIR"/../contrib/check-code.py
     2   $ cd "$TESTDIR"/..
     2   $ cd "$TESTDIR"/..
     3 
     3 
     4   $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
     4   $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
     5 
     5 
     6   $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0
     6   $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true
     7   contrib/check-code.py:0:
     7   contrib/check-code.py:0:
     8    > #    (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"),
     8    > #    (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"),
     9    warning: line over 80 characters
     9    warning: line over 80 characters
    10   contrib/perf.py:0:
    10   contrib/perf.py:0:
    11    >         except:
    11    >         except:
   655    >         print "Found %d repositories when I should have found 2" % (len(reposet),)
   655    >         print "Found %d repositories when I should have found 2" % (len(reposet),)
   656    warning: line over 80 characters
   656    warning: line over 80 characters
   657   tests/test-walkrepo.py:0:
   657   tests/test-walkrepo.py:0:
   658    >         print "Found %d repositories when I should have found 3" % (len(reposet),)
   658    >         print "Found %d repositories when I should have found 3" % (len(reposet),)
   659    warning: line over 80 characters
   659    warning: line over 80 characters
   660   [123]