2015-11-11 10:29:00 -05:00
|
|
|
desc 'Code duplication analyze via flay'
|
|
|
|
task :flay do
|
2015-11-17 05:18:01 -05:00
|
|
|
output = %x(bundle exec flay --mass 35 app/ lib/gitlab/)
|
2015-11-11 10:29:00 -05:00
|
|
|
|
|
|
|
if output.include? "Similar code found"
|
|
|
|
puts output
|
|
|
|
exit 1
|
|
|
|
end
|
|
|
|
end
|