From 46ec999b139f9d535fb20f7658cdff166506e754 Mon Sep 17 00:00:00 2001 From: Patrick Reynolds Date: Thu, 19 Dec 2013 13:19:12 -0600 Subject: [PATCH] allow 100-character lines --- brightray/script/cpplint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brightray/script/cpplint b/brightray/script/cpplint index 69b7aaff9a0..58a6a5e0b5c 100755 --- a/brightray/script/cpplint +++ b/brightray/script/cpplint @@ -8,6 +8,7 @@ import sys SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) CPPLINT = os.path.join(SOURCE_ROOT, 'vendor', 'google-styleguide', 'trunk', 'cpplint', 'cpplint.py') +LINE_LENGTH = 100 IGNORED_FILES = [ os.path.join('browser', 'mac', 'bry_inspectable_web_contents_view_private.h'), @@ -40,7 +41,7 @@ def list_files(directories, filters): def cpplint(files): - return subprocess.call([sys.executable, CPPLINT, '--filter=' + ','.join(FILTERS)] + list(files)) + return subprocess.call([sys.executable, CPPLINT, '--linelength=%d' % LINE_LENGTH, '--filter=' + ','.join(FILTERS)] + list(files)) if __name__ == '__main__':