contrib/check-code.py
branchstable
changeset 16013 2a1d97630f7f
parent 15873 a153a86a472c
child 16098 c6c9b83a1e8a
equal deleted inserted replaced
16012:10c8110d114b 16013:2a1d97630f7f
    69     (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
    69     (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
    70     (r'ls +[^|\n-]+ +-', "options to 'ls' must come before filenames"),
    70     (r'ls +[^|\n-]+ +-', "options to 'ls' must come before filenames"),
    71     (r'[^>\n]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"),
    71     (r'[^>\n]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"),
    72     (r'^stop\(\)', "don't use 'stop' as a shell function name"),
    72     (r'^stop\(\)', "don't use 'stop' as a shell function name"),
    73     (r'(\[|\btest\b).*-e ', "don't use 'test -e', use 'test -f'"),
    73     (r'(\[|\btest\b).*-e ', "don't use 'test -e', use 'test -f'"),
       
    74     (r'^alias\b.*=', "don't use alias, use a function"),
    74   ],
    75   ],
    75   # warnings
    76   # warnings
    76   []
    77   []
    77 ]
    78 ]
    78 
    79