flay.rake 194 字节
Newer Older
1 2
desc 'Code duplication analyze via flay'
task :flay do
3
  output = %x(bundle exec flay --mass 30 app/ lib/gitlab/)
4 5 6 7 8 9

  if output.include? "Similar code found"
    puts output
    exit 1
  end
end