Abort when there is a error in cpplint.
This commit is contained in:
parent
e8ecbec3a7
commit
7cc1589097
1 changed files with 1 additions and 1 deletions
2
script/cpplint.py
vendored
2
script/cpplint.py
vendored
|
@ -41,7 +41,7 @@ def list_files(directories, filters):
|
||||||
def call_cpplint(files):
|
def call_cpplint(files):
|
||||||
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py')
|
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py')
|
||||||
rules = '--filter=-build/header_guard,-build/include_what_you_use'
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue