gitlab-org--gitlab-foss/lib/tasks/flay.rake
Dmitriy Zaporozhets 4747412a49
Set higher flay value to avoid unnecessary refactoring for now
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-17 11:18:01 +01:00

9 lines
194 B
Ruby

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