62 (r'[^\n]\Z', "no trailing newline"), |
62 (r'[^\n]\Z', "no trailing newline"), |
63 (r'export.*=', "don't export and assign at once"), |
63 (r'export.*=', "don't export and assign at once"), |
64 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), |
64 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), |
65 (r'^source\b', "don't use 'source', use '.'"), |
65 (r'^source\b', "don't use 'source', use '.'"), |
66 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"), |
66 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"), |
|
67 (r'ls\s+[^-]+\s+-', "options to 'ls' must come before filenames"), |
67 ] |
68 ] |
68 |
69 |
69 testfilters = [ |
70 testfilters = [ |
70 (r"( *)(#([^\n]*\S)?)", repcomment), |
71 (r"( *)(#([^\n]*\S)?)", repcomment), |
71 (r"<<(\S+)((.|\n)*?\n\1)", rephere), |
72 (r"<<(\S+)((.|\n)*?\n\1)", rephere), |