contrib/check-code.py
changeset 20598 e57e2da803aa
parent 20532 f1a3ae7c15df
child 20688 a61ed1c2d7a7
--- a/contrib/check-code.py	Fri Feb 14 00:34:20 2014 +0100
+++ b/contrib/check-code.py	Wed Feb 19 13:46:49 2014 -0800
@@ -121,6 +121,7 @@
     (r'^( *)\t', "don't use tabs to indent"),
     (r'sed (-e )?\'(\d+|/[^/]*/)i(?!\\\n)',
      "put a backslash-escaped newline after sed 'i' command"),
+    (r'^diff *-\w*u.*$\n(^  \$ |^$)', "prefix diff -u with cmp"),
   ],
   # warnings
   [