summaryrefslogtreecommitdiff
path: root/utils/lint
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lint')
-rwxr-xr-xutils/lint/cpp_lint.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/lint/cpp_lint.py b/utils/lint/cpp_lint.py
index e26fb707c9..ca81bfe35d 100755
--- a/utils/lint/cpp_lint.py
+++ b/utils/lint/cpp_lint.py
@@ -65,9 +65,11 @@ def VerifyIncludes(filename, lines):
class CppLint(common_lint.BaseLint):
+ MAX_LINE_LENGTH = 80
+
def RunOnFile(self, filename, lines):
VerifyIncludes(filename, lines)
- common_lint.VerifyLineLength(filename, lines)
+ common_lint.VerifyLineLength(filename, lines, CppLint.MAX_LINE_LENGTH)
common_lint.VerifyTrailingWhitespace(filename, lines)