Mercurial > hg-stable
changeset 36202:c38e9248f531
contrib: ban $RANDOM using check-code
Differential Revision: https://phab.mercurial-scm.org/D2237
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Feb 2018 18:00:59 -0500 |
parents | 068f520754ca |
children | 53fe5a1a92bd |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py Tue Feb 13 17:58:40 2018 -0500 +++ b/contrib/check-code.py Tue Feb 13 18:00:59 2018 -0500 @@ -150,6 +150,7 @@ (r'grep.* -[ABC]', "don't use grep's context flags"), (r'find.*-printf', "don't use 'find -printf', it doesn't exist on BSD find(1)"), + (r'\$RANDOM ', "don't use bash-only $RANDOM to generate random values"), ], # warnings [