Module: Quality::Tools::RailsBestPractices::ClassMethods

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

Overview

See Rubocop.included

Instance Method Summary collapse

Instance Method Details

#count_rails_best_practices_violations(line) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/quality/tools/rails_best_practices.rb', line 22

def count_rails_best_practices_violations(line)
  if line =~ /.*:[0-9]* - /
    1
  else
    0
  end
end