From 452c3507986d4cc3928b78d75a15d5aa54cf2b6c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 13 Aug 2013 17:07:36 +0800 Subject: [PATCH] :lipstick: for cpplint. --- script/cpplint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/cpplint.py b/script/cpplint.py index fdfdd5ad2678..b1729e7e29f2 100755 --- a/script/cpplint.py +++ b/script/cpplint.py @@ -5,15 +5,16 @@ import os import subprocess import sys -OBJC_HEADERS = [ +IGNORE_FILES = [ 'app/win/resource.h', 'browser/atom_event_processing_window.h', 'browser/atom_application_mac.h', 'browser/atom_application_delegate_mac.h', 'browser/native_window_mac.h', - 'browser/nsalert_synchronous_sheet.h', + 'browser/ui/nsalert_synchronous_sheet_mac.h', 'common/api/api_messages.cc', 'common/api/api_messages.h', + 'common/atom_version.h', ] SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) @@ -23,7 +24,7 @@ def main(): os.chdir(SOURCE_ROOT) files = list_files(['app', 'browser', 'common', 'renderer'], ['*.cc', '*.h']) - call_cpplint(list(set(files) - set(OBJC_HEADERS))) + call_cpplint(list(set(files) - set(IGNORE_FILES))) def list_files(directories, filters):