contrib/check-code.py
changeset 19873 b3de50b0c7aa
parent 19872 681f7b9213a4
child 19965 f1dd988a8bcc
child 19981 d1e14e7e5b40
--- a/contrib/check-code.py	Thu Oct 03 14:50:47 2013 +0200
+++ b/contrib/check-code.py	Thu Oct 03 14:50:47 2013 +0200
@@ -120,7 +120,7 @@
     (uprefix + r'.*\|\| echo.*(fail|error)',
      "explicit exit code checks unnecessary"),
     (uprefix + r'set -e', "don't use set -e"),
-    (uprefix + r'\s', "don't indent commands, use > for continued lines"),
+    (uprefix + r'(\s|fi\b|done\b)', "use > for continued lines"),
     (r'^  saved backup bundle to \$TESTTMP.*\.hg$', winglobmsg),
     (r'^  changeset .* references (corrupted|missing) \$TESTTMP/.*[^)]$',
      winglobmsg),