contrib/check-code.py
branchstable
changeset 10802 6e4cf8319f54
parent 10658 95c7c4b7e67a
child 10814 cd0c49bdbfd9
equal deleted inserted replaced
10801:fcfe2e50faab 10802:6e4cf8319f54
    51      "use egrep for extended grep syntax"),
    51      "use egrep for extended grep syntax"),
    52     (r'/bin/', "don't use explicit paths for tools"),
    52     (r'/bin/', "don't use explicit paths for tools"),
    53     (r'\$PWD', "don't use $PWD, use `pwd`"),
    53     (r'\$PWD', "don't use $PWD, use `pwd`"),
    54     (r'[^\n]\Z', "no trailing newline"),
    54     (r'[^\n]\Z', "no trailing newline"),
    55     (r'export.*=', "don't export and assign at once"),
    55     (r'export.*=', "don't export and assign at once"),
       
    56     ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
    56 ]
    57 ]
    57 
    58 
    58 testfilters = [
    59 testfilters = [
    59     (r"( *)(#([^\n]*\S)?)", repcomment),
    60     (r"( *)(#([^\n]*\S)?)", repcomment),
    60     (r"<<(\S+)((.|\n)*?\n\1)", rephere),
    61     (r"<<(\S+)((.|\n)*?\n\1)", rephere),