# HG changeset patch # User Martin Geisler # Date 1289983077 -3600 # Node ID 8b167ee8242fd7117185150a0015a753019f145e # Parent 4936a04b6792dc9d3b8380fa111463dccf34403b check-code: catch 'ls filename --option' case as per 6bdae8ea0b48 diff -r 4936a04b6792 -r 8b167ee8242f contrib/check-code.py --- a/contrib/check-code.py Tue Nov 02 17:44:19 2010 +0100 +++ b/contrib/check-code.py Wed Nov 17 09:37:57 2010 +0100 @@ -64,6 +64,7 @@ ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), (r'^source\b', "don't use 'source', use '.'"), (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"), + (r'ls\s+[^-]+\s+-', "options to 'ls' must come before filenames"), ] testfilters = [