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
path: root/lib/tasks
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-09-29 04:38:43 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-09-29 04:38:43 +0300
commite3f12e975d59b0606b8f1365e21814b34ea83767 (patch)
treed21272785d3e64291f98471163c8a86d5eeea755 /lib/tasks
parenta2c528f2a47d2b512875240ed5a6bef274314d71 (diff)
Remove Flog as we use a Rubocop that does its job.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/flog.rake25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/tasks/flog.rake b/lib/tasks/flog.rake
deleted file mode 100644
index 3bfe999ae74..00000000000
--- a/lib/tasks/flog.rake
+++ /dev/null
@@ -1,25 +0,0 @@
-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
- output.shift
-
- # Skip some trash info
- output.shift
-
- output.each do |line|
- score, method = line.split(" ")
- score = score.to_i
-
- if score > minimum_score
- exit_code = 1
- puts "High complexity in #{method}. Score: #{score}"
- end
- end
-
- exit exit_code
-end