Recent Releases of https://github.com/rubocop/rubocop-ast
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.50.0
Bug fixes
- #412: Fix
Node#argument?returningtruefor receivers that are structurally equal to an argument (e.g. the receiver infoo.bar(foo)). (@bbatsov) - #401: Avoid intermediate array allocations in HashNode#each_key/each_value. (@bbatsov)
- #409: Fix
Node#chained?andMethodDispatchNode#block_literal?returningtruefor nodes that are merely structurally equal to the receiver or send node (e.g. the argument infoo.bar(foo)). (@bbatsov) - #407: Fix the blockless form of the deprecated
each_when,each_in_pattern,each_condition, andeach_branchmethods, which returned an unusableEnumerator. (@bbatsov) - #401: Fix force_encoding being a no-op for frozen string inputs. (@bbatsov)
- #408: Fix
ProcessedSource#preceding_linereturning the last line of the file for tokens on the first line. (@bbatsov)
Changes
- #411: Speed up filtered node traversals (
each_descendant(:send)etc.) by not allocating an array per visited node, and add the non-splattingNode#type_in?predicate. (@bbatsov) - #404: Improve
parser_prismperformance by building tokens only when they are first accessed. (@bbatsov) - #408: Memoize
ProcessedSource#checksumand skip the token sort when the tokens are already in order. (@bbatsov) - #410: Reduce allocations in
keyword?and the method-name predicates (predicate_method?,bang_method?, etc.). (@bbatsov) - #405: Use Prism by default when analyzing Ruby 3.3 code. (@bbatsov)
- Ruby
Published by koic about 1 month ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.49.1
Bug fixes
- #399: Fix unification variables not persisting in any-order nodes. (@marcandre)
- Ruby
Published by koic 5 months ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.49.0
New features
- Ruby
Published by github-actions[bot] 8 months ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.48.0
New features
- Ruby
Published by github-actions[bot] 9 months ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.46.0
New features
- #379: Support
RuboCop::AST::ComplexNode. ([@koic][])
Bug fixes
- #380: Fix
RuboCop::AST::NumericNode#sign?to return boolean. ([@viralpraxis][])
- Ruby
Published by koic about 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST 1.45.1
Bug fixes
- Ruby
Published by koic about 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.45.0
New features
- Ruby
Published by koic about 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.44.1
Bug fixes
- #378: Fix
flip-flopoperator possible children nodes count. (@viralpraxis)
- Ruby
Published by koic over 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.44.0
New features
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.43.0
Changes
- #374: Use the
prismtranslation layer to analyze Ruby 3.4 by default. ([@earlopain]) - #373: Add
prismas a runtime dependency. ([@earlopain])
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.42.0
New features
- #370: Support
Prism::Translation::Parser35for Ruby 3.5 parser (experimental). (@earlopain, @koic)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.41.0
New features
- #365: Add support for
itblocknode for Ruby 3.4. (@earlopain)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-ast - RuboCop AST v1.40.0
Changes
- #354: Use
Prism::Translation::Parser::Builderwhen parsing with prism. (@earlopain)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-ast - rubocop-ast 0.1.0
New features
- #36: Add
post_condition_loop?andloop_keyword?forNode. (@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?forMethodIdentifierPredicates. (@fatkodima) - #4: Add
interpolation?forRegexpNode. (@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 === nodeto match params, which allows Regexp, Proc, Set in addition to Nodes and literals. (@marcandre) - #41: Add
delimitersand related predicates forRegexpNode. (@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_argto be set totruein v1.0 (@marcandre) - #48: Support
Parser::Ruby28for Ruby 2.8 (3.0) parser (experimental). (@koic) - #35: NodePattern now accepts
%named_paramand%CONST. The macrosdef_node_patternanddef_node_searchaccept default named parameters. (@marcandre)
- Ruby
Published by bbatsov about 6 years ago
https://github.com/rubocop/rubocop-ast - rubocop-ast 0.0.3
Changes
- Classes
NodePattern,ProcessedSourceandTokenmoved toAST::NodePattern, etc.
Therubocopgem has aliases to ensure compatibility. [#7] AST::ProcessedSource.from_filenow raises aErrno::ENOENTinstead of aRuboCop::Error[#7]
- Ruby
Published by bbatsov about 6 years ago
https://github.com/rubocop/rubocop-ast - rubocop-ast 0.0.2
Bug fixes
- Perf #106: Fix RegexpNode#to_regexp where option is 'o' + any other (@marcandre)
- Define
RuboCop::AST::Version::STRING.
- Ruby
Published by bbatsov about 6 years ago
https://github.com/rubocop/rubocop-ast - rubocop-ast 0.0.1
- Gem extracted from RuboCop. (@marcandre)
- Ruby
Published by bbatsov about 6 years ago