module RuboCop::Cop::BlockLines

Public Instance Methods

check_block_length(node, opts={}) click to toggle source
# File lib/rubocop/cop/mixin/block_lines.rb, line 10
def check_block_length(node, opts={})
  method, args, body = *node
  require 'pry'
  _receiver, method_name, _args = *method
  return if opts[:only] && !Array(opts[:only]).include?(method_name)
  return if opts[:except] && Array(opts[:except]).include?(method_name)
  check_code_length node
end