contrib: remove check-code rule about indentation
authorAugie Fackler <augie@google.com>
Mon, 16 Oct 2017 11:43:41 -0400
changeset 34799 0b46352384a0
parent 34798 e33381d95930
child 34800 761355833867
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
contrib/check-code.py
--- 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"),