BigW Consortium Gitlab

flay.rake 253 Bytes
Newer Older
1 2
desc 'Code duplication analyze via flay'
task :flay do
Lin Jen-Shin committed
3
  output = `bundle exec flay --mass 35 app/ lib/gitlab/ 2> #{File::NULL}`
4

5
  if output.include?("Similar code found") || output.include?("IDENTICAL code found")
6 7 8 9
    puts output
    exit 1
  end
end