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
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-ast
- Owner: rubocop
- License: mit
- Created: 2020-05-12T05:13:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-27T10:15:03.000Z (about 1 month ago)
- Last Synced: 2026-02-10T14:20:30.811Z (21 days ago)
- Topics: ast, hacktoberfest, rubocop, ruby
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-ast
- Size: 1.33 MB
- Stars: 131
- Watchers: 9
- Forks: 59
- Open Issues: 9
- Releases: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
README.md
RuboCop AST
Contains the classes needed by RuboCop to deal with Ruby's AST, in particular:
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_argemit_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
- Name: RuboCop Headquarters
- Login: rubocop
- Email:
- Kind: organization
- Description: We're committed to promoting the best Ruby programming practices and helping people write better Ruby applications.
- Website: https://rubocop.org
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/10871348?v=4
- Repositories: 28
- Last ynced at: 2024-03-25T19:40:52.798Z
- Profile URL: https://github.com/rubocop
GitHub Events
Total
- Create event: 22
- Commit comment event: 4
- Release event: 7
- Delete event: 3
- Pull request event: 106
- Fork event: 10
- Issues event: 19
- Watch event: 26
- Issue comment event: 189
- Push event: 116
- Pull request review event: 122
- Pull request review comment event: 115
Last Year
- Release event: 7
- Delete event: 2
- Pull request event: 41
- Fork event: 6
- Issues event: 3
- Watch event: 13
- Issue comment event: 69
- Push event: 52
- Pull request review comment event: 33
- Pull request review event: 35
- Create event: 9
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 | 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:
- shopify.com: 2
- marc-andre.ca: 1
- batsov.com: 1
- pocke.me: 1
- quorning.net: 1
- aikais.in: 1
- uuml.de: 1
- dio.jp: 1
- tradeo.com: 1
- riseup.net: 1
- owenstephens.co.uk: 1
- viget.com: 1
- anti-pattern.com: 1
- jefffelchner.com: 1
- igels.net: 1
- matthewman.net: 1
- telhaug.no: 1
- flemi.ng: 1
- alpaca.tc: 1
- dblock.org: 1
- goodlife.tw: 1
- tenjin.com: 1
- toptal.com: 1
- thoughtbot.com: 1
- wishabi.com: 1
- eger-andreas.de: 1
- suse.com: 1
- jaredbeck.com: 1
- unterwaditzer.net: 1
- segiddins.me: 1
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
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
- Total packages: 9
-
Total downloads:
- rubygems: 960,547,584 total
- Total docker downloads: 6,789,273,168
- Total dependent packages: 41 (may contain duplicates)
- Total dependent repositories: 37,625 (may contain duplicates)
- Total versions: 187
- Total maintainers: 3
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%
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:
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
- actions/checkout v4 composite
- paambaati/codeclimate-action v5.0.0 composite
- ruby/setup-ruby v1 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- 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
- parser >= 3.3.0.4
Score: 32.10703238917571