Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 16373:329887a7074c
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 06 Apr 2012 15:18:14 -0500 |
parents | 42e95631887d f64b25f147d7 |
children | 1a420761fcb7 |
line wrap: on
line diff
--- a/contrib/check-code.py Fri Apr 06 15:16:30 2012 -0500 +++ b/contrib/check-code.py Fri Apr 06 15:18:14 2012 -0500 @@ -95,6 +95,8 @@ "explicit exit code checks unnecessary"), (uprefix + r'set -e', "don't use set -e"), (uprefixc + r'( *)\t', "don't use tabs to indent"), + (uprefixc + r'.*do\s*true;\s*done', + "don't use true as loop body, use sleep 0"), ], # warnings []