Allow flog failure for now
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
58429d9b26
commit
6748dd2fd0
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue