contrib: remove check-code rule about indentation
We're moving towards a clang-format world, and clang-format is able to
wrap argument lists with spaces reliably, while still enforcing tabs
globally. Let's let clang-format do its job, and not do as much
C-style enforcement with regular expressions.
Differential Revision: https://phab.mercurial-scm.org/D1130
--- a/contrib/check-code.py Sat Jan 24 17:04:25 2015 -0500
+++ b/contrib/check-code.py Mon Oct 16 11:43:41 2017 -0400
@@ -429,7 +429,6 @@
cpats = [
[
(r'//', "don't use //-style comments"),
- (r'^ ', "don't use spaces to indent"),
(r'\S\t', "don't use tabs except for indent"),
(r'(\S[ \t]+|^[ \t]+)\n', "trailing whitespace"),
(r'.{81}', "line too long"),