summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2016-03-30 15:36:50 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2016-03-30 15:36:50 +0100
commitbdbd67f2cb72bfa012301f632752bb6347bb7c88 (patch)
tree75cd98998ae0b4b8441f1bc555506e8bcbddedb9
parent5dc1790cf69cb1446facc1052a6b1d3df9fadc6a (diff)
downloadgem5-bdbd67f2cb72bfa012301f632752bb6347bb7c88.tar.xz
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 <aandreas.sandberg@arm.com> Reviewed-by: Brandon Potter <brandon.potter@amd.com> --HG-- rename : util/style.py => util/hgstyle.py extra : rebase_source : 63efcc4da2585ef8c323d6f322736f64d71742f8
-rw-r--r--util/style/verifiers.py2
1 files changed, 1 insertions, 1 deletions
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")