branch | stable |
changeset 19080 | 5e4491c114b2 |
parent 19031 | 341083b02d1b |
child 19081 | e97ce4a5afc5 |
--- a/contrib/check-code.py Mon Apr 22 12:27:56 2013 +0400 +++ b/contrib/check-code.py Mon Apr 22 16:33:28 2013 -0500 @@ -74,6 +74,8 @@ (r'/dev/u?random', "don't use entropy, use /dev/zero"), (r'do\s*true;\s*done', "don't use true as loop body, use sleep 0"), (r'^( *)\t', "don't use tabs to indent"), + (r'sed .*\'/[^/]*/i[^\\][^\n]', + "put a backslash-escaped newline after sed 'i' command"), ], # warnings [