contrib/check-code.py
branchstable
changeset 14831 0407b7613e99
parent 14763 b071cd58af50
child 14978 5a0fdc715769
equal deleted inserted replaced
14830:35f5cfdd0427 14831:0407b7613e99
    66     ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
    66     ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
    67     (r'^source\b', "don't use 'source', use '.'"),
    67     (r'^source\b', "don't use 'source', use '.'"),
    68     (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
    68     (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
    69     (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
    69     (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
    70     (r'[^>]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"),
    70     (r'[^>]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"),
       
    71     (r'stop\(\)', "don't use 'stop' as a shell function name"),
    71   ],
    72   ],
    72   # warnings
    73   # warnings
    73   []
    74   []
    74 ]
    75 ]
    75 
    76