# HG changeset patch # User Augie Fackler # Date 1508168621 14400 # Node ID 0b46352384a094aa396cdfb38eec13e381437c3c # Parent e33381d95930b269df665f035c3d431705fcb6da 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 diff -r e33381d95930 -r 0b46352384a0 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"),