contrib/check-code.py
branchstable
changeset 10658 95c7c4b7e67a
parent 10451 63a9bfad50ff
child 10702 1437542a9fd7
child 10802 6e4cf8319f54
equal deleted inserted replaced
10656:f6ee02933af9 10658:95c7c4b7e67a
    50     (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
    50     (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
    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 ]
    56 ]
    56 
    57 
    57 testfilters = [
    58 testfilters = [
    58     (r"( *)(#([^\n]*\S)?)", repcomment),
    59     (r"( *)(#([^\n]*\S)?)", repcomment),
    59     (r"<<(\S+)((.|\n)*?\n\1)", rephere),
    60     (r"<<(\S+)((.|\n)*?\n\1)", rephere),