Mercurial > hg
changeset 27791:0029c2bebc23
check-code: export needs a space to avoid false positives
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 12 Jan 2016 15:58:59 +0000 |
parents | 2d294dada4f8 |
children | 980957333cfa |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py Thu Jan 14 11:50:28 2016 -0800 +++ b/contrib/check-code.py Tue Jan 12 15:58:59 2016 +0000 @@ -107,7 +107,7 @@ "use egrep for extended grep syntax"), (r'/bin/', "don't use explicit paths for tools"), (r'[^\n]\Z', "no trailing newline"), - (r'export.*=', "don't export and assign at once"), + (r'export .*=', "don't export and assign at once"), (r'^source\b', "don't use 'source', use '.'"), (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"), (r'ls +[^|\n-]+ +-', "options to 'ls' must come before filenames"),