lib/pelusa/lint/many_arguments.rb in pelusa-0.2.3 vs lib/pelusa/lint/many_arguments.rb in pelusa-0.2.4

- old
+ new

@@ -25,10 +25,10 @@ Pelusa.configuration['ManyArguments'].fetch('limit', 3) end def iterate_lines!(klass) ClassAnalyzer.walk(klass) do |node| - if node.is_a?(Rubinius::AST::Define) && node.arguments.total_args > limit + if node.is_a?(Rubinius::ToolSets::Runtime::ToolSet::AST::Define) && node.arguments.total_args > limit @violations << node.name end end end