Submitter | phabricator |
---|---|
Date | Sept. 17, 2021, 7:05 p.m. |
Message ID | <differential-rev-PHID-DREV-rxbwlpghywbtueugbur2-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/49766/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -195,7 +195,7 @@ [ (r'^function', "don't use 'function', use old style"), (r'^diff.*-\w*N', "don't use 'diff -N'"), - (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`"), + (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`", "no-pwd-check"), (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"), (r'kill (`|\$\()', "don't use kill, use killdaemons.py"), ],