# HG changeset patch # User Martin von Zweigbergk # Date 1454476804 28800 # Node ID e77ac31b64a1649185f8357905e55c298383b045 # Parent 79139c7a88bd1567ec31f0856b24c3f559aef8d1 check-code: allow "grep pattern filename-containing-dash-a" We're trying to forbid "grep -a" and unintentionally complained even if the "-a" was part of the filename. Requiring a space before "-a" to match is probably good enough. diff -r 79139c7a88bd -r e77ac31b64a1 contrib/check-code.py --- a/contrib/check-code.py Fri Feb 05 15:18:40 2016 +0100 +++ b/contrib/check-code.py Tue Feb 02 21:20:04 2016 -0800 @@ -90,7 +90,7 @@ (r'pushd|popd', "don't use 'pushd' or 'popd', use 'cd'"), (r'\W\$?\(\([^\)\n]*\)\)', "don't use (()) or $(()), use 'expr'"), (r'grep.*-q', "don't use 'grep -q', redirect to /dev/null"), - (r'(?