tests/test-check-code.t
changeset 33116 6c113a7dec52
parent 32230 73c3e226d2fc
child 33204 ddd65b4f3ae6
equal deleted inserted replaced
33115:fa9a90d5ad89 33116:6c113a7dec52
     5   $ cd "$TESTDIR"/..
     5   $ cd "$TESTDIR"/..
     6 
     6 
     7 New errors are not allowed. Warnings are strongly discouraged.
     7 New errors are not allowed. Warnings are strongly discouraged.
     8 (The writing "no-che?k-code" is for not skipping this file when checking.)
     8 (The writing "no-che?k-code" is for not skipping this file when checking.)
     9 
     9 
    10   $ hg locate -X contrib/python-zstandard -X hgext/fsmonitor/pywatchman |
    10   $ syshg locate -X contrib/python-zstandard -X hgext/fsmonitor/pywatchman |
    11   > sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
    11   > sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
    12   Skipping i18n/polib.py it has no-che?k-code (glob)
    12   Skipping i18n/polib.py it has no-che?k-code (glob)
    13   Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
    13   Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
    14   Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
    14   Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
    15   Skipping mercurial/statprof.py it has no-che?k-code (glob)
    15   Skipping mercurial/statprof.py it has no-che?k-code (glob)
    31   ...               'command is %s; expected %s' % (commands[i], command))
    31   ...               'command is %s; expected %s' % (commands[i], command))
    32   ...         break
    32   ...         break
    33 
    33 
    34 Prevent adding new files in the root directory accidentally.
    34 Prevent adding new files in the root directory accidentally.
    35 
    35 
    36   $ hg files 'glob:*'
    36   $ syshg files 'glob:*'
    37   .editorconfig
    37   .editorconfig
    38   .hgignore
    38   .hgignore
    39   .hgsigs
    39   .hgsigs
    40   .hgtags
    40   .hgtags
    41   CONTRIBUTING
    41   CONTRIBUTING