Show More
@@ -116,7 +116,6 b' testpats = [' | |||||
116 | (r'\bls\b.*-\w*R', "don't use 'ls -R', use 'find'"), |
|
116 | (r'\bls\b.*-\w*R', "don't use 'ls -R', use 'find'"), | |
117 | (r'printf.*[^\\]\\([1-9]|0\d)', r"don't use 'printf \NNN', use Python"), |
|
117 | (r'printf.*[^\\]\\([1-9]|0\d)', r"don't use 'printf \NNN', use Python"), | |
118 | (r'printf.*[^\\]\\x', "don't use printf \\x, use Python"), |
|
118 | (r'printf.*[^\\]\\x', "don't use printf \\x, use Python"), | |
119 | (r'\$\(.*\)', "don't use $(expr), use `expr`"), |
|
|||
120 | (r'rm -rf \*', "don't use naked rm -rf, target a directory"), |
|
119 | (r'rm -rf \*', "don't use naked rm -rf, target a directory"), | |
121 | (r'\[[^\]]+==', '[ foo == bar ] is a bashism, use [ foo = bar ] instead'), |
|
120 | (r'\[[^\]]+==', '[ foo == bar ] is a bashism, use [ foo = bar ] instead'), | |
122 | (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w', |
|
121 | (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w', |
General Comments 0
You need to be logged in to leave comments.
Login now