comparison contrib/check-code.py @ 47879:b84fe613de33 stable

check-code: make it possible to ignore the PWD check in some situation The check-code script does not motivate the banning of $PWD so I am not sure what it is about. And I will needs to use the env variable in the next tests. So I am adding a way to make an exception. Differential Revision: https://phab.mercurial-scm.org/D11450
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 17 Sep 2021 21:04:17 +0200
parents 142a76127e3a
children df56e6bd37f6
comparison
equal deleted inserted replaced
47878:bad66df931b5 47879:b84fe613de33
193 ], 193 ],
194 # warnings 194 # warnings
195 [ 195 [
196 (r'^function', "don't use 'function', use old style"), 196 (r'^function', "don't use 'function', use old style"),
197 (r'^diff.*-\w*N', "don't use 'diff -N'"), 197 (r'^diff.*-\w*N', "don't use 'diff -N'"),
198 (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`"), 198 (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`", "no-pwd-check"),
199 (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"), 199 (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"),
200 (r'kill (`|\$\()', "don't use kill, use killdaemons.py"), 200 (r'kill (`|\$\()', "don't use kill, use killdaemons.py"),
201 ], 201 ],
202 ] 202 ]
203 203