debian-mirror-gitlab/lib/tasks/flay.rake

10 lines
194 B
Ruby
Raw Normal View History

2015-11-26 14:37:03 +05:30
desc 'Code duplication analyze via flay'
task :flay do
output = %x(bundle exec flay --mass 30 app/ lib/gitlab/)
if output.include? "Similar code found"
puts output
exit 1
end
end