A summary of data about the Ruby ecosystem.

https://github.com/rubocop/rubocop-ast

RuboCop's AST extensions and NodePattern functionality
https://github.com/rubocop/rubocop-ast

Keywords

ast hacktoberfest rubocop ruby

Keywords from Contributors

code-formatter static-code-analysis activerecord rspec rubygems activejob mvc static-analysis rack crash-reporting

Last synced: about 8 hours ago
JSON representation

Repository metadata

RuboCop's AST extensions and NodePattern functionality

README.md

RuboCop AST

Gem Version
CI

Contains the classes needed by RuboCop to deal with Ruby's AST, in particular:

  • RuboCop::AST::Node (doc)
  • RuboCop::AST::NodePattern (doc)

This gem may be used independently from the main RuboCop gem. It was extracted from RuboCop in version 0.84 and its only
dependency is the parser gem, which rubocop-ast extends.

Installation

Just install the rubocop-ast gem

gem install rubocop-ast

or if you use bundler put this in your Gemfile

gem 'rubocop-ast'

Usage

Refer to the documentation of RuboCop::AST::Node and RuboCop::AST::NodePattern

See the docs site for more details.

Parser compatibility switches

This gem, by default, uses most legacy AST output from parser, except for the following which are set to true:

  • emit_forward_arg
  • emit_match_pattern

The main RuboCop gem uses these defaults (and is currently only compatible with these), but this gem can be used separately from RuboCop and is meant to be compatible with all settings. For example, to have -> { ... } emitted
as LambdaNode instead of SendNode:

RuboCop::AST::Builder.emit_lambda = true

Contributing

Checkout the contribution guidelines.

License

rubocop-ast is MIT licensed. See the accompanying file for
the full text.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 3 days ago

Total Commits: 1,101
Total Committers: 81
Avg Commits per committer: 13.593
Development Distribution Score (DDS): 0.586

Commits in past year: 95
Committers in past year: 7
Avg Commits per committer in past year: 13.571
Development Distribution Score (DDS) in past year: 0.589

Name Email Commits
Marc-Andre Lafortune g****b@m****a 456
Koichi ITO k****o@g****m 188
Ted Johansson d****i@g****m 72
Earlopain 1****n 45
Daniel Vandersluis d****s@g****m 37
Bozhidar Batsov b****r@b****m 34
Alex Dowad a****g@g****m 29
Garett Arrowood g****d@g****m 21
Masataka Pocke Kuwabara k****a@p****e 18
Yuji Nakayama n****j@g****m 16
Ryan Rosenblum r****m@g****m 13
John Backus j****s@g****m 13
dependabot[bot] 4****] 9
fatkodima f****3@g****m 9
Jonas Arvidsson j****4@g****m 8
Phil Pirozhkov p****a@g****m 8
Benjamin Quorning b****n@q****t 7
Teemu t****u@a****n 7
Tejas Bubane t****e@g****m 7
ydah 1****h 7
Sam Bostock s****k@s****m 6
Andreas Bühmann d****v@u****e 5
Akira Matsuda r****e@d****p 4
Bozhidar Batsov b****r@t****m 4
David Rodríguez d****z@r****t 3
Genadi Samokovarov g****v@g****m 3
Keiji, Yoshimi w****3@g****m 3
Owen Stephens o****n@o****k 3
wata_mac w****s@g****m 3
David Rodríguez d****z@g****m 2
and 51 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 10 days ago

Total issues: 27
Total pull requests: 288
Average time to close issues: 8 months
Average time to close pull requests: about 2 months
Total issue authors: 15
Total pull request authors: 33
Average comments per issue: 3.07
Average comments per pull request: 1.72
Merged pull request: 236
Bot issues: 0
Bot pull requests: 13

Past year issues: 3
Past year pull requests: 49
Past year average time to close issues: about 9 hours
Past year average time to close pull requests: 4 days
Past year issue authors: 3
Past year pull request authors: 6
Past year average comments per issue: 1.33
Past year average comments per pull request: 1.39
Past year merged pull request: 34
Past year bot issues: 0
Past year bot pull requests: 1

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/rubocop/rubocop-ast

Top Issue Authors

  • dvandersluis (5)
  • pirj (3)
  • Earlopain (3)
  • bquorning (3)
  • VitaliySerov (2)
  • marcandre (2)
  • ahoward (1)
  • aerophilic (1)
  • jodosha (1)
  • davidrunger (1)
  • AsWali (1)
  • wintersolutions (1)
  • pocke (1)
  • mhashizume (1)
  • viralpraxis (1)

Top Pull Request Authors

  • koic (83)
  • Earlopain (65)
  • dvandersluis (48)
  • marcandre (28)
  • dependabot[bot] (13)
  • sambostock (9)
  • ydah (7)
  • viralpraxis (3)
  • r7kamura (2)
  • yui-knk (2)
  • kddnewton (2)
  • pirj (2)
  • vlad-pisanov (2)
  • fatkodima (2)
  • Kallin (2)

Top Issue Labels

  • next major (1)
  • documentation (1)

Top Pull Request Labels

  • dependencies (13)
  • auto-merge (5)
  • documentation (2)
  • enhancement (2)
  • github_actions (1)

Package metadata

gem.coop: rubocop-ast

RuboCop's Node and NodePattern classes.

  • Homepage: https://www.rubocop.org/
  • Documentation: http://www.rubydoc.info/gems/rubocop-ast/
  • Licenses: MIT
  • Latest release: 1.49.0 (published 2 months ago)
  • Last Synced: 2026-03-02T13:01:37.445Z (1 day ago)
  • Versions: 90
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 480,391,641 Total
  • Docker Downloads: 3,394,636,584
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.019%
    • Docker downloads count: 0.026%
    • Downloads: 0.05%
  • Maintainers (3)
rubygems.org: rubocop-ast

RuboCop's Node and NodePattern classes.

  • Homepage: https://www.rubocop.org/
  • Documentation: http://www.rubydoc.info/gems/rubocop-ast/
  • Licenses: MIT
  • Latest release: 1.49.0 (published 2 months ago)
  • Last Synced: 2026-03-01T21:01:30.146Z (2 days ago)
  • Versions: 90
  • Dependent Packages: 41
  • Dependent Repositories: 37,625
  • Downloads: 480,155,943 Total
  • Docker Downloads: 3,394,636,584
  • Rankings:
    • Docker downloads count: 0.064%
    • Downloads: 0.07%
    • Dependent repos count: 0.168%
    • Dependent packages count: 0.715%
    • Average: 1.748%
    • Forks count: 3.812%
    • Stargazers count: 5.66%
  • Maintainers (3)
ubuntu-22.04: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Licenses:
  • Latest release: 0.6.0-1 (published 18 days ago)
  • Last Synced: 2026-02-13T13:25:27.328Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-23.10: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Licenses:
  • Latest release: 1.24.0-2 (published 18 days ago)
  • Last Synced: 2026-02-13T18:32:04.123Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-23.04: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Licenses:
  • Latest release: 1.24.0-2 (published 21 days ago)
  • Last Synced: 2026-02-11T06:49:00.528Z (21 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Licenses:
  • Latest release: 1.24.0-2 (published 22 days ago)
  • Last Synced: 2026-02-09T17:13:54.133Z (22 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
debian-12: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Documentation: https://packages.debian.org/bookworm/ruby-rubocop-ast
  • Licenses:
  • Latest release: 1.24.0-2 (published 19 days ago)
  • Last Synced: 2026-02-12T23:40:23.709Z (19 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
ubuntu-24.04: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Status: removed
  • Licenses:
  • Latest release: 1.24.0-2 (published 25 days ago)
  • Last Synced: 2026-02-06T16:02:12.861Z (25 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
debian-13: ruby-rubocop-ast

  • Homepage: https://github.com/rubocop/rubocop-ast
  • Documentation: https://packages.debian.org/trixie/ruby-rubocop-ast
  • Licenses:
  • Latest release: 1.24.0-2 (published 19 days ago)
  • Last Synced: 2026-02-13T13:19:18.130Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

.github/workflows/rubocop.yml actions
  • actions/checkout v4 composite
  • paambaati/codeclimate-action v5.0.0 composite
  • ruby/setup-ruby v1 composite
.github/workflows/spell_checking.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
Gemfile rubygems
  • bump >= 0
  • bundler >= 1.15.0, < 3.0
  • oedipus_lex >= 2.6.0
  • racc >= 0
  • rake ~> 13.0
  • rspec ~> 3.7
  • rubocop >= 0
  • rubocop >= 1.0
  • rubocop-performance >= 0
  • rubocop-rspec >= 0
  • simplecov ~> 0.10, < 0.18
rubocop-ast.gemspec rubygems
  • parser >= 3.3.0.4

Score: 32.10703238917571