Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)