Class: MetricFu::Configuration
- Inherits:
-
Object
- Object
- MetricFu::Configuration
- Defined in:
- lib/metric_fu/base.rb
Instance Attribute Summary collapse
-
#churn ⇒ Object
Returns the value of attribute churn.
-
#coverage ⇒ Object
Returns the value of attribute coverage.
-
#flay ⇒ Object
Returns the value of attribute flay.
-
#flog ⇒ Object
Returns the value of attribute flog.
-
#metrics ⇒ Object
Returns the value of attribute metrics.
-
#reek ⇒ Object
Returns the value of attribute reek.
-
#roodi ⇒ Object
Returns the value of attribute roodi.
-
#saikuro ⇒ Object
Returns the value of attribute saikuro.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Configuration
132 133 134 135 136 137 |
# File 'lib/metric_fu/base.rb', line 132 def initialize raise "Use config.churn instead of MetricFu::CHURN_OPTIONS" if defined? ::MetricFu::CHURN_OPTIONS raise "Use config.flog[:dirs_to_flog] instead of MetricFu::DIRECTORIES_TO_FLOG" if defined? ::MetricFu::DIRECTORIES_TO_FLOG raise "Use config.saikuro instead of MetricFu::SAIKURO_OPTIONS" if defined? ::MetricFu::SAIKURO_OPTIONS reset end |
Instance Attribute Details
#churn ⇒ Object
Returns the value of attribute churn.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def churn @churn end |
#coverage ⇒ Object
Returns the value of attribute coverage.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def coverage @coverage end |
#flay ⇒ Object
Returns the value of attribute flay.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def flay @flay end |
#flog ⇒ Object
Returns the value of attribute flog.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def flog @flog end |
#metrics ⇒ Object
Returns the value of attribute metrics.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def metrics @metrics end |
#reek ⇒ Object
Returns the value of attribute reek.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def reek @reek end |
#roodi ⇒ Object
Returns the value of attribute roodi.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def roodi @roodi end |
#saikuro ⇒ Object
Returns the value of attribute saikuro.
131 132 133 |
# File 'lib/metric_fu/base.rb', line 131 def saikuro @saikuro end |
Class Method Details
.run {|MetricFu.configuration| ... } ⇒ Object
139 140 141 |
# File 'lib/metric_fu/base.rb', line 139 def self.run() yield MetricFu.configuration end |
Instance Method Details
#reset ⇒ Object
143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/metric_fu/base.rb', line 143 def reset @churn = {} @coverage = { :test_files => ['test/**/*_test.rb', 'spec/**/*_spec.rb'], :rcov_opts => ["--sort coverage", "--html", "--rails", "--exclude /gems/,/Library/,spec"] } @flay = { :dirs_to_flay => CODE_DIRS} @flog = { :dirs_to_flog => CODE_DIRS} @reek = { :dirs_to_reek => CODE_DIRS} @roodi = { :dirs_to_roodi => CODE_DIRS} @metrics = DEFAULT_METRICS @saikuro = {} end |