2015-11-26 14:37:03 +05:30
|
|
|
desc 'Code duplication analyze via flay'
|
|
|
|
task :flay do
|
2017-08-17 22:00:37 +05:30
|
|
|
output = `bundle exec flay --mass 35 app/ lib/gitlab/`
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
if output.include? "Similar code found"
|
|
|
|
puts output
|
|
|
|
exit 1
|
|
|
|
end
|
|
|
|
end
|