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',
['app', 'browser', 'common', 'renderer', 'utility'],
['*.cc', '*.h'])
files -= ignore
if args.only_changed:
files &= changed_files
call_cpplint(list(files))
files = list_files('brightray', ['browser', 'common'], ['*.cc', '*.h'])
files += list_files('brightray', ['browser', 'common'], ['*.cc', '*.h'])
files -= ignore
if args.only_changed:
files &= changed_files