gitlab-org--gitlab-foss/lib/tasks/flay.rake
2017-02-23 09:32:42 -06:00

9 lines
192 B
Ruby

desc 'Code duplication analyze via flay'
task :flay do
output = `bundle exec flay --mass 35 app/ lib/gitlab/`
if output.include? "Similar code found"
puts output
exit 1
end
end