Module: Quality::Tools::Reek::ClassMethods

Defined in:
lib/quality/tools/reek.rb

Overview

See Reek.included

Instance Method Summary collapse

Instance Method Details

#count_reek_violations(line) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/quality/tools/reek.rb', line 25

def count_reek_violations(line)
  if line =~ /^  .* (.*)$/
    1
  else
    0
  end
end