From 23a669817e28092b22994338f22a1e4b3823424d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Sun, 5 Jan 2020 15:07:58 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- scripts/static-analysis | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/static-analysis b/scripts/static-analysis index c26c9a55bb1..d2d82c19bed 100755 --- a/scripts/static-analysis +++ b/scripts/static-analysis @@ -35,8 +35,7 @@ ALLOWED_WARNINGS = [ def warning_count(static_analysis) static_analysis.warned_results - .reject { |result| ALLOWED_WARNINGS.include?(result.stderr.strip) } - .count + .count { |result| !ALLOWED_WARNINGS.include?(result.stderr.strip) } end def jobs_to_run(node_index, node_total) -- cgit v1.2.3