only call cppcheck once

This commit is contained in:
Charles Kerr 2017-12-19 15:07:11 -06:00
parent 6198bbe963
commit b6c16a520a

7
script/cpplint.py vendored
View file

@ -79,12 +79,7 @@ def main():
files = list_files('atom', files = list_files('atom',
['app', 'browser', 'common', 'renderer', 'utility'], ['app', 'browser', 'common', 'renderer', 'utility'],
['*.cc', '*.h']) ['*.cc', '*.h'])
files -= ignore files += list_files('brightray', ['browser', 'common'], ['*.cc', '*.h'])
if args.only_changed:
files &= changed_files
call_cpplint(list(files))
files = list_files('brightray', ['browser', 'common'], ['*.cc', '*.h'])
files -= ignore files -= ignore
if args.only_changed: if args.only_changed:
files &= changed_files files &= changed_files