Common functionality for checking length of code segments.
# File lib/rubocop/cop/mixin/code_length.rb, line 16 def check(node, *_) length = code_length(node) return unless length > max_length add_offense(node, :keyword, format(message, length, max_length)) do self.max = length end end
# File lib/rubocop/cop/mixin/code_length.rb, line 12 def count_comments? cop_config['CountComments'] end
Generated with the Darkfish Rdoc Generator 2.