From bdbd67f2cb72bfa012301f632752bb6347bb7c88 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Wed, 30 Mar 2016 15:36:50 +0100 Subject: [PATCH] style: Change maximum line length to 79 characters The old style guide used to mandate 78 characters as the maximum line length to accommodate traditional diffs on 80-column terminals. This is an uncommon use case and it has therefore been decided (see email thread on gem5-dev [1]) that a maximum length of 79-characters makes more sense. [1] http://comments.gmane.org/gmane.comp.emulators.m5.devel/29789 Signed-off-by: Andreas Sandberg Reviewed-by: Brandon Potter --HG-- rename : util/style.py => util/hgstyle.py extra : rebase_source : 63efcc4da2585ef8c323d6f322736f64d71742f8 --- util/style/verifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/style/verifiers.py b/util/style/verifiers.py index 8626cc7ce..7650d3071 100644 --- a/util/style/verifiers.py +++ b/util/style/verifiers.py @@ -340,7 +340,7 @@ class LineLength(LineVerifier): opt_name = 'length' def check_line(self, line): - return style.normalized_len(line) <= 78 + return style.normalized_len(line) <= 79 def fix(self, filename, regions=all_regions): self.ui.write("Warning: cannot automatically fix overly long lines.\n") -- 2.30.2