Mercurial > hg-stable
changeset 34799:0b46352384a0
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 16 Oct 2017 11:43:41 -0400 |
parents | e33381d95930 |
children | 761355833867 |
files | contrib/check-code.py |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"),