]> khamidou — GitHub mirrors - electron.git/commitdiff
Abort when there is a error in cpplint.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 21 Aug 2013 13:35:41 +0000 (21:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 21 Aug 2013 13:35:41 +0000 (21:35 +0800)
script/cpplint.py

index 4330877133e2b51ae8f62fdc6b934e7cf0adbe43..54c0674c3666c39d205e54d9e7004d52474317cb 100755 (executable)
@@ -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__':