Skip to content

Releases: rubocop/rubocop-ast

rubocop-ast 0.1.0

07 Jul 19:37
Compare
Choose a tag to compare

New features

  • #36: Add post_condition_loop? and loop_keyword? for Node. (@fatkodima)
  • #38: Add helpers allowing to check whether the method is a nonmutating operator method or a nonmutating method of several core classes. (@fatkodima)
  • #37: Add enumerable_method? for MethodIdentifierPredicates. (@fatkodima)
  • #4: Add interpolation? for RegexpNode. (@tejasbubane)
  • #20: Add option predicates for RegexpNode. (@owst)
  • #11: Add argument_type? method to make it easy to recognize argument nodes. (@tejasbubane)
  • #31: NodePattern now uses param === node to match params, which allows Regexp, Proc, Set in addition to Nodes and literals. (@marcandre)
  • #41: Add delimiters and related predicates for RegexpNode. (@owst)
  • #46: Basic support for non-legacy AST output from parser. Note that there is no support (yet) in main RuboCop gem. Expect emit_forward_arg to be set to true in v1.0 (@marcandre)
  • #48: Support Parser::Ruby28 for Ruby 2.8 (3.0) parser (experimental). (@koic)
  • #35: NodePattern now accepts %named_param and %CONST. The macros def_node_pattern and def_node_search accept default named parameters. (@marcandre)

rubocop-ast 0.0.3

07 Jul 19:36
Compare
Choose a tag to compare

Changes

  • Classes NodePattern, ProcessedSource and Token moved to AST::NodePattern, etc.
    The rubocop gem has aliases to ensure compatibility. [#7]
  • AST::ProcessedSource.from_file now raises a Errno::ENOENT instead of a RuboCop::Error [#7]

rubocop-ast 0.0.2

07 Jul 19:35
Compare
Choose a tag to compare

Bug fixes

  • Perf #106: Fix RegexpNode#to_regexp where option is 'o' + any other (@marcandre)
  • Define RuboCop::AST::Version::STRING.

rubocop-ast 0.0.1

07 Jul 19:33
Compare
Choose a tag to compare