diff --git a/src/ameba/ast/visitors/node_visitor.cr b/src/ameba/ast/visitors/node_visitor.cr index 3a2633389..a950e68ba 100644 --- a/src/ameba/ast/visitors/node_visitor.cr +++ b/src/ameba/ast/visitors/node_visitor.cr @@ -54,12 +54,12 @@ module Ameba::AST end end - def initialize(@rule, @source, skip : Category) + def initialize(@rule, @source, *, skip : Category) initialize @rule, @source, skip: NodeVisitor.category_to_node_classes(skip) end - def initialize(@rule, @source, skip : Array? = nil) + def initialize(@rule, @source, *, skip : Array? = nil) @skip = skip.try &.map(&.as(Crystal::ASTNode.class)) super @rule, @source end