only call cppcheck once
This commit is contained in:
parent
6198bbe963
commit
b6c16a520a
1 changed files with 1 additions and 6 deletions
7
script/cpplint.py
vendored
7
script/cpplint.py
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue