From 84ae61744d05840e147931697e05bbe8fd276b97 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Sun, 17 Nov 2013 18:55:06 -0500 Subject: [PATCH] Ignore cpplint errors in bry_inspectable_web_contents_view_private.h It's not a C++ header. --- brightray/script/cpplint | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/brightray/script/cpplint b/brightray/script/cpplint index d6e5ebcf9f..089b210c2f 100755 --- a/brightray/script/cpplint +++ b/brightray/script/cpplint @@ -9,12 +9,16 @@ 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') +IGNORED_FILES = [ + 'browser/mac/bry_inspectable_web_contents_view_private.h', +] + def main(): os.chdir(SOURCE_ROOT) files = list_files(['browser', 'common'], ['*.cc', '*.h']) - return cpplint(files) + return cpplint(set(files) - set(IGNORED_FILES)) def list_files(directories, filters): @@ -29,7 +33,7 @@ def list_files(directories, filters): def cpplint(files): rules = '--filter=-build/header_guard,-build/include_what_you_use,-legal/copyright' - return subprocess.call([sys.executable, CPPLINT, rules] + files) + return subprocess.call([sys.executable, CPPLINT, rules] + list(files)) if __name__ == '__main__':