class RubbyCop::Cop::Metrics::MethodLength
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Constants
- LABEL
Private Instance Methods
cop_label()
click to toggle source
# File lib/rubbycop/cop/metrics/method_length.rb, line 21 def cop_label LABEL end
on_method_def(node, _method_name, _args, _body)
click to toggle source
# File lib/rubbycop/cop/metrics/method_length.rb, line 17 def on_method_def(node, _method_name, _args, _body) check_code_length(node) end