[Updated] D11450: check-code: make it possible to ignore the PWD check in some situation

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sun Sep 19 19:45:40 UTC 2021


Closed by commit rHGb84fe613de33: check-code: make it possible to ignore the PWD check in some situation (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11450?vs=30292&id=30301

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11450/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11450

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS

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"),
     ],



To: marmoute, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210919/8f0e2da6/attachment-0002.html>


More information about the Mercurial-patches mailing list