Class: Watchr::ReekMetric::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/watchr/metrics/reek/report.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Report

Returns a new instance of Report.



6
7
8
# File 'lib/watchr/metrics/reek/report.rb', line 6

def initialize(path)
  @warnings = Reek::Examiner.new(path).all_active_smells
end

Instance Method Details

#smellsObject



10
11
12
# File 'lib/watchr/metrics/reek/report.rb', line 10

def smells
  @warnings
end