Welcome to mirror list, hosted at ThFree Co, Russian Federation.

flay.rake « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4bec013a14158bc690fb430d0b1a2b0b7523b7d3 (plain)
1
2
3
4
5
6
7
8
9
desc 'Code duplication analyze via flay'
task :flay do
  output = `bundle exec flay --mass 35 app/ lib/gitlab/ ee/ 2> #{File::NULL}`

  if output.include?("Similar code found") || output.include?("IDENTICAL code found")
    puts output
    exit 1
  end
end