Sha256: 933e7dd78773a119d2523dd9156dbd592204179dd1cc528d3476bcd0d1ec0406

Contents?: true

Size: 508 Bytes

Versions: 23

Compression:

Stored size: 508 Bytes

Contents

namespace :metrics do
  require 'flay'

  project = Devtools.project
  config  = project.flay

  # Original code by Marty Andrews:
  # http://blog.martyandrews.net/2009/05/enforcing-ruby-code-quality.html
  desc 'Measure code duplication'
  task :flay do
    threshold   = config.threshold
    total_score = config.total_score

    Devtools::Rake::Flay.call(
      threshold:   threshold,
      total_score: total_score,
      lib_dirs:    config.lib_dirs,
      excludes:    config.excludes
    )
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
devtools-0.1.26 tasks/metrics/flay.rake
devtools-0.1.25 tasks/metrics/flay.rake
devtools-0.1.24 tasks/metrics/flay.rake
devtools-0.1.23 tasks/metrics/flay.rake
devtools-0.1.22 tasks/metrics/flay.rake
devtools-0.1.21 tasks/metrics/flay.rake
devtools-0.1.20 tasks/metrics/flay.rake
devtools-0.1.19 tasks/metrics/flay.rake
devtools-0.1.18 tasks/metrics/flay.rake
devtools-0.1.16 tasks/metrics/flay.rake
devtools-0.1.15 tasks/metrics/flay.rake
devtools-0.1.14 tasks/metrics/flay.rake
devtools-0.1.13 tasks/metrics/flay.rake
devtools-0.1.12 tasks/metrics/flay.rake
devtools-0.1.11 tasks/metrics/flay.rake
devtools-0.1.10 tasks/metrics/flay.rake
devtools-0.1.9 tasks/metrics/flay.rake
devtools-0.1.8 tasks/metrics/flay.rake
devtools-0.1.7 tasks/metrics/flay.rake
devtools-0.1.6 tasks/metrics/flay.rake