summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-05 15:07:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-05 15:07:58 +0000
commit23a669817e28092b22994338f22a1e4b3823424d (patch)
tree02ca39ca872eb55b98659fc6e7f27bf9fbc45eb5 /scripts
parent190ca0529dd0edef1d881e09d5352f83426b01d3 (diff)
downloadgitlab-ce-23a669817e28092b22994338f22a1e4b3823424d.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/static-analysis3
1 files changed, 1 insertions, 2 deletions
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)