💄 for cpplint.
This commit is contained in:
parent
f4425afb39
commit
452c350798
1 changed files with 4 additions and 3 deletions
7
script/cpplint.py
vendored
7
script/cpplint.py
vendored
|
@ -5,15 +5,16 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
OBJC_HEADERS = [
|
IGNORE_FILES = [
|
||||||
'app/win/resource.h',
|
'app/win/resource.h',
|
||||||
'browser/atom_event_processing_window.h',
|
'browser/atom_event_processing_window.h',
|
||||||
'browser/atom_application_mac.h',
|
'browser/atom_application_mac.h',
|
||||||
'browser/atom_application_delegate_mac.h',
|
'browser/atom_application_delegate_mac.h',
|
||||||
'browser/native_window_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.cc',
|
||||||
'common/api/api_messages.h',
|
'common/api/api_messages.h',
|
||||||
|
'common/atom_version.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
|
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
@ -23,7 +24,7 @@ def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
files = list_files(['app', 'browser', 'common', 'renderer'],
|
files = list_files(['app', 'browser', 'common', 'renderer'],
|
||||||
['*.cc', '*.h'])
|
['*.cc', '*.h'])
|
||||||
call_cpplint(list(set(files) - set(OBJC_HEADERS)))
|
call_cpplint(list(set(files) - set(IGNORE_FILES)))
|
||||||
|
|
||||||
|
|
||||||
def list_files(directories, filters):
|
def list_files(directories, filters):
|
||||||
|
|
Loading…
Reference in a new issue