Class: Fudge::Tasks::Flog

Inherits:
Shell show all
Includes:
Helpers::BundleAware
Defined in:
lib/fudge/tasks/flog.rb

Overview

Allow use of Flog complexity analyser

task :flog

runs flog with max score of 10.0 for a method, 5.0 average

task :flog, :exclude => 'subpath/'

excludes files matching :exclude from run

task :flog, :max => 20.0

sets max score for a method to 20.0

task :flog, :average => 10.0

sets required average to 10.0

task :flog, :methods => true

runs only scoring methods, not classes macros etc

Any and all options can be defined

Instance Attribute Summary

Attributes inherited from Shell

#arguments

Attributes inherited from Task

#args, #options

Method Summary

Methods inherited from Shell

#initialize, #run

Methods inherited from Task

#initialize, name

Constructor Details

This class inherits a constructor from Fudge::Tasks::Shell