Class: MetricsSatellite::GuidelineCollector

Inherits:
Collector
  • Object
show all
Defined in:
lib/metrics_satellite/collectors/guideline_collector.rb

Constant Summary

Constants included from Filer

Filer::EXT

Instance Attribute Summary

Attributes inherited from Collector

#options

Instance Method Summary collapse

Methods inherited from Collector

#initialize, #run, underscore

Constructor Details

This class inherits a constructor from MetricsSatellite::Collector

Instance Method Details

#collectObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/metrics_satellite/collectors/guideline_collector.rb', line 3

def collect
  system(
    "guideline",
    "--no-unused-method",
    "--no-hard-tab-indent",
    "--no-hash-comma",
    "--no-long-method",
    "--no-trailing-whitespace",
    "--abc-complexity", options[:guideline_abc_complexity] || "15",
    "--long-line", options[:guideline_long_line] || "128",
    :out => file
  )
end