summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-11 15:30:23 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-11 15:30:23 +0100
commit6748dd2fd0b2cf694661e910c6c1bb6ac2be69a1 (patch)
tree2ef63fc14a00870d29b45c47d204eda70739b4ed /lib
parent58429d9b26b2f2b62fecab012fce0ebe36571129 (diff)
downloadgitlab-ce-6748dd2fd0b2cf694661e910c6c1bb6ac2be69a1.tar.gz
Allow flog failure for now
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/flog.rake3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/flog.rake b/lib/tasks/flog.rake
index 4cb19c0c937..3bfe999ae74 100644
--- a/lib/tasks/flog.rake
+++ b/lib/tasks/flog.rake
@@ -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