From b6c16a520ab9f2cc4ad924fa79be2abab5673879 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 19 Dec 2017 15:07:11 -0600 Subject: [PATCH] only call cppcheck once --- script/cpplint.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/script/cpplint.py b/script/cpplint.py index 1cd84dda12..fb73cdf010 100755 --- a/script/cpplint.py +++ b/script/cpplint.py @@ -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