Module: Watchr::Analysers::Flog

Includes:
SmellTypes
Included in:
FileAnalyse
Defined in:
lib/watchr/analysers/flog.rb

Constant Summary collapse

VERY_COMPLEX_OBJECT_THRESHOLD =
100
COMPLEX_OBJECT_THRESHOLD =
50
VERY_COMPLEX_METHOD_THRESHOLD =
40
COMPLEX_METHOD_THRESHOLD =
25

Constants included from SmellTypes

SmellTypes::ALL_SMELLS

Instance Method Summary collapse

Instance Method Details

#analyse_flog(report) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/watchr/analysers/flog.rb', line 18

def analyse_flog(report)
  report.classes.each do |klass|
    analyse_class_complexity(klass)

    klass.methods.each do |method|
      analyse_method_complexity(method)
    end
  end
end