2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2014-08-06 20:53:08 +04:00
|
|
|
#require test-repo
|
2014-05-05 22:42:58 +04:00
|
|
|
|
2016-05-11 07:49:27 +03:00
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
2011-11-23 05:50:58 +04:00
|
|
|
$ cd "$TESTDIR"/..
|
|
|
|
|
2013-07-06 23:47:56 +04:00
|
|
|
New errors are not allowed. Warnings are strongly discouraged.
|
2014-01-08 01:29:15 +04:00
|
|
|
(The writing "no-che?k-code" is for not skipping this file when checking.)
|
2013-07-06 23:47:56 +04:00
|
|
|
|
2020-06-05 21:51:20 +03:00
|
|
|
$ testrepohg files . | egrep -v "^(edenscm/hgext/extlib/pywatchman|lib/cdatapack|lib/third-party|edenscm/mercurial/thirdparty|fb|newdoc|tests|edenscm/mercurial/templates/static|i18n|slides|.*\\.(bin|bindag|hg|pdf|jpg)$)" \
|
2018-07-03 21:20:37 +03:00
|
|
|
> | sed 's-\\-/-g' > $TESTTMP/files.txt
|
|
|
|
|
2020-05-07 19:05:16 +03:00
|
|
|
$ NPROC=`$PYTHON -c 'import multiprocessing; print(multiprocessing.cpu_count())'`
|
|
|
|
$ cat $TESTTMP/files.txt | PYTHONPATH= xargs -n64 -P $NPROC contrib/check-code.py --warnings --per-file=0 | sort
|
2019-01-29 05:29:48 +03:00
|
|
|
Skipping edenscm/hgext/extlib/cstore/datapackstore.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/datapackstore.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/datastore.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/deltachain.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/deltachain.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/key.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/match.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/py-cstore.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/py-datapackstore.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/py-structs.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/py-treemanifest.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/pythondatastore.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/pythondatastore.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/pythonkeyiterator.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/pythonutil.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/pythonutil.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/store.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/uniondatapackstore.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/cstore/uniondatapackstore.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest_entry.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest_entry.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest_fetcher.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest_fetcher.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest_ptr.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/manifest_ptr.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/treemanifest.cpp it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/extlib/ctreemanifest/treemanifest.h it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/globalrevs.py it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/hgext/hgsql.py it has no-che?k-code (glob)
|
2019-11-07 03:10:29 +03:00
|
|
|
Skipping edenscm/mercurial/commands/eden.py it has no-che?k-code (glob)
|
2019-01-29 05:29:48 +03:00
|
|
|
Skipping edenscm/mercurial/httpclient/__init__.py it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/mercurial/httpclient/_readers.py it has no-che?k-code (glob)
|
|
|
|
Skipping edenscm/mercurial/statprof.py it has no-che?k-code (glob)
|
2018-01-09 02:08:18 +03:00
|
|
|
Skipping lib/clib/buffer.c it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/buffer.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/convert.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/null_test.c it has no-che?k-code (glob)
|
2018-04-10 11:06:47 +03:00
|
|
|
Skipping lib/clib/portability/dirent.h it has no-che?k-code (glob)
|
2018-01-09 02:08:18 +03:00
|
|
|
Skipping lib/clib/portability/inet.h it has no-che?k-code (glob)
|
2018-02-13 18:47:38 +03:00
|
|
|
Skipping lib/clib/portability/mman.h it has no-che?k-code (glob)
|
2018-01-09 02:08:18 +03:00
|
|
|
Skipping lib/clib/portability/portability.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/portability/unistd.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/sha1.h it has no-che?k-code (glob)
|
2019-12-03 16:54:17 +03:00
|
|
|
edenscm/hgext/extlib/phabricator/graphql.py:*: use foobar, not foo_bar naming --> ca_bundle = repo.ui.configpath("web", "cacerts") (glob)
|
|
|
|
edenscm/hgext/extlib/phabricator/graphql.py:*: use foobar, not foo_bar naming --> def scmquery_log( (glob)
|
2020-03-06 02:03:18 +03:00
|
|
|
edenscm/hgext/hggit/git_handler.py:*: use foobar, not foo_bar naming --> git_renames = {} (glob)
|
2016-11-25 20:55:05 +03:00
|
|
|
|
|
|
|
@commands in debugcommands.py should be in alphabetical order.
|
|
|
|
|
|
|
|
>>> import re
|
|
|
|
>>> commands = []
|
2019-01-29 05:29:48 +03:00
|
|
|
>>> with open('edenscm/mercurial/commands/debug.py', 'rb') as fh:
|
2016-11-25 20:55:05 +03:00
|
|
|
... for line in fh:
|
2020-01-31 05:09:21 +03:00
|
|
|
... m = re.match(b"^@command\('([a-z]+)", line)
|
2016-11-25 20:55:05 +03:00
|
|
|
... if m:
|
|
|
|
... commands.append(m.group(1))
|
|
|
|
>>> scommands = list(sorted(commands))
|
|
|
|
>>> for i, command in enumerate(scommands):
|
|
|
|
... if command != commands[i]:
|
|
|
|
... print('commands in debugcommands.py not sorted; first differing '
|
|
|
|
... 'command is %s; expected %s' % (commands[i], command))
|
|
|
|
... break
|
2017-03-29 22:14:20 +03:00
|
|
|
|