debian-mirror-gitlab/lib/tasks/flay.rake
2018-03-17 18:26:18 +05:30

9 lines
253 B
Ruby

desc 'Code duplication analyze via flay'
task :flay do
output = `bundle exec flay --mass 35 app/ lib/gitlab/ 2> #{File::NULL}`
if output.include?("Similar code found") || output.include?("IDENTICAL code found")
puts output
exit 1
end
end