changeset 43060:63e25ae9cdce

contrib: remove check-code line length limit Both Python and C code are managed by formatters now, so relax this. Differential Revision: https://phab.mercurial-scm.org/D6976
author Augie Fackler <augie@google.com>
date Sat, 05 Oct 2019 10:46:46 -0400
parents 4bbc9569e722
children b61324854e93
files contrib/check-code.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Mon Sep 30 14:21:05 2019 -0400
+++ b/contrib/check-code.py	Sat Oct 05 10:46:46 2019 -0400
@@ -364,7 +364,6 @@
     # python code fragments embedded in test scripts. Fixing test
     # scripts for these patterns requires many changes, and has less
     # profit than effort.
-    (r'.{81}', "line too long"),
     (r'raise Exception', "don't raise generic exceptions"),
     (r'[\s\(](open|file)\([^)]*\)\.read\(',
      "use util.readfile() instead"),
@@ -462,7 +461,6 @@
     (r'//', "don't use //-style comments"),
     (r'\S\t', "don't use tabs except for indent"),
     (r'(\S[ \t]+|^[ \t]+)\n', "trailing whitespace"),
-    (r'.{81}', "line too long"),
     (r'(while|if|do|for)\(', "use space after while/if/do/for"),
     (r'return\(', "return is not a function"),
     (r' ;', "no space before ;"),