Abort when there is a error in cpplint.
This commit is contained in:
Родитель
e8ecbec3a7
Коммит
7cc1589097
|
@ -41,7 +41,7 @@ def list_files(directories, filters):
|
|||
def call_cpplint(files):
|
||||
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py')
|
||||
rules = '--filter=-build/header_guard,-build/include_what_you_use'
|
||||
subprocess.call([sys.executable, cpplint, rules] + files)
|
||||
subprocess.check_call([sys.executable, cpplint, rules] + files)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Загрузка…
Ссылка в новой задаче