gitlab-org--gitlab-foss/lib/tasks/flay.rake

10 lines
209 B
Ruby
Raw Normal View History

desc 'Code duplication analyze via flay'
task :flay do
2018-01-23 14:03:21 -05:00
output = `bundle exec flay --mass 35 app/ lib/gitlab/ 2> #{File::NULL}`
if output.include? "Similar code found"
puts output
exit 1
end
end