Commit 6748dd2f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Allow flog failure for now

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 58429d9b
......@@ -80,3 +80,4 @@ flog:
tags:
- ruby
- mysql
allow_failure: true
......@@ -2,6 +2,7 @@ desc 'Code complexity analyze via flog'
task :flog do
output = %x(bundle exec flog -m app/ lib/gitlab)
exit_code = 0
minimum_score = 70
output = output.lines
# Skip total complexity score
......@@ -14,7 +15,7 @@ task :flog do
score, method = line.split(" ")
score = score.to_i
if score > 40
if score > minimum_score
exit_code = 1
puts "High complexity in #{method}. Score: #{score}"
end
......
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