RuboCop's AST extensions and NodePattern functionality
post_condition_loop?
and loop_keyword?
for Node
. (@fatkodima)enumerable_method?
for MethodIdentifierPredicates
. (@fatkodima)interpolation?
for RegexpNode
. (@tejasbubane)RegexpNode
. (@owst)argument_type?
method to make it easy to recognize argument nodes. (@tejasbubane)param === node
to match params, which allows Regexp, Proc, Set in addition to Nodes and literals. (@marcandre)delimiters
and related predicates for RegexpNode
. (@owst)emit_forward_arg
to be set to true
in v1.0 (@marcandre)Parser::Ruby28
for Ruby 2.8 (3.0) parser (experimental). (@koic)%named_param
and %CONST
. The macros def_node_pattern
and def_node_search
accept default named parameters. (@marcandre)RuboCop::AST::Version::STRING
.