gitlab-org--gitlab-foss/lib/tasks/flay.rake
2018-06-21 00:31:56 +08:00

9 lines
257 B
Ruby

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