lib/skeptic/rules/lines_per_method.rb in skeptic-0.0.0 vs lib/skeptic/rules/lines_per_method.rb in skeptic-0.0.1

- old
+ new

@@ -1,16 +1,18 @@ module Skeptic module Rules class LinesPerMethod + DESCRIPTION = 'Limit the number of lines in each method' + include SexpVisitor def initialize(limit = nil) env[:line_numbers] = [] @line_counts = {} @limit = limit end - def apply_to(tokens, sexp) + def apply_to(code, tokens, sexp) visit sexp self end def size_of(qualified_method_name)