vendor/jruby/1.9/gems/reek-1.6.5/lib/reek/smells/too_many_methods.rb
#
# Checks +ctx+ for too many methods
#
# @return [Array<SmellWarning>]
#
Checks +ctx+ for too many methods
Checks + ctx + for too many methods
def examine_context(ctx)
        @max_allowed_methods = value(MAX_ALLOWED_METHODS_KEY, ctx, DEFAULT_MAX_METHODS)
        actual = ctx.node_instance_methods.length
        return [] if actual <= @max_allowed_methods
        [SmellWarning.new(self,
                          context: ctx.full_name,
                          lines: [ctx.exp.line],
                          message:  "has at least #{actual} methods",
                          parameters: { count: actual })]
      end
def examine_context ( ctx ) @max_allowed_methods = value ( MAX_ALLOWED_METHODS_KEY , ctx , DEFAULT_MAX_METHODS ) actual = ctx . node_instance_methods . length return [ ] if actual <= @max_allowed_methods [ SmellWarning . new ( self , context : ctx . full_name , lines : [ ctx . exp . line ] , message : "has at least #{actual} methods" , parameters : { count : actual } ) ] end
Checks +ctx+ for too many methods
Checks + ctx + for too many methods
None
Array<SmellWarning>
ctx