Commit 5daf53ff authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'sh-simplify-static-analysis' into 'master'

Simplify static-analysis count for ignored warnings

See merge request gitlab-org/gitlab!22448
parents e98fd6f4 ce72fc0c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment