Class: MetricFu::MetricReek

Inherits:
Metric
  • Object
show all
Defined in:
lib/metric_fu/metrics/reek/metric.rb

Instance Attribute Summary

Attributes inherited from Metric

#activated, #enabled

Instance Method Summary collapse

Methods inherited from Metric

#configured_run_options, #default_run_args, enabled_metrics, #gem_name, get_metric, #initialize, metrics, #run, #run_external, #run_options

Constructor Details

This class inherits a constructor from MetricFu::Metric

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MetricFu::Metric

Instance Method Details

#activateObject



22
23
24
# File 'lib/metric_fu/metrics/reek/metric.rb', line 22

def activate
  super
end

#default_run_optionsObject



7
8
9
10
11
12
# File 'lib/metric_fu/metrics/reek/metric.rb', line 7

def default_run_options
  {
    dirs_to_reek: MetricFu::Io::FileSystem.directory("code_dirs"),
    config_file_pattern: nil,
  }
end

#enableObject



18
19
20
# File 'lib/metric_fu/metrics/reek/metric.rb', line 18

def enable
  super
end

#has_graph?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/metric_fu/metrics/reek/metric.rb', line 14

def has_graph?
  true
end

#nameObject



3
4
5
# File 'lib/metric_fu/metrics/reek/metric.rb', line 3

def name
  :reek
end