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 rubygem rspec activejob mvc static-analysis rack crash-reporting
Last synced: about 19 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-03-30T20:22:01.000Z (about 1 month ago)
- Last Synced: 2026-04-19T00:42:47.980Z (12 days ago)
- Topics: ast, hacktoberfest, rubocop, ruby
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-ast
- Size: 1.37 MB
- Stars: 132
- Watchers: 8
- Forks: 59
- Open Issues: 9
- Releases: 16
-
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: 23
- Commit comment event: 4
- Release event: 8
- Delete event: 4
- Pull request event: 107
- Fork event: 10
- Issues event: 19
- Watch event: 27
- Issue comment event: 190
- Push event: 126
- Pull request review event: 122
- Pull request review comment event: 115
Last Year
- Release event: 4
- Delete event: 2
- Pull request event: 16
- Fork event: 4
- Watch event: 10
- Issue comment event: 30
- Push event: 34
- Create event: 3
Committers metadata
Last synced: 1 day ago
Total Commits: 1,118
Total Committers: 81
Avg Commits per committer: 13.802
Development Distribution Score (DDS): 0.587
Commits in past year: 73
Committers in past year: 7
Avg Commits per committer in past year: 10.429
Development Distribution Score (DDS) in past year: 0.63
| Name | Commits | |
|---|---|---|
| Marc-Andre Lafortune | g****b@m****a | 462 |
| Koichi ITO | k****o@g****m | 190 |
| Ted Johansson | d****i@g****m | 72 |
| Earlopain | 1****n | 45 |
| Bozhidar Batsov | b****r@b****m | 43 |
| Daniel Vandersluis | d****s@g****m | 37 |
| 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 |
| John Backus | j****s@g****m | 13 |
| Ryan Rosenblum | r****m@g****m | 13 |
| fatkodima | f****3@g****m | 9 |
| dependabot[bot] | 4****] | 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: 23 days ago
Total issues: 27
Total pull requests: 290
Average time to close issues: 8 months
Average time to close pull requests: about 2 months
Total issue authors: 15
Total pull request authors: 34
Average comments per issue: 3.07
Average comments per pull request: 1.71
Merged pull request: 236
Bot issues: 0
Bot pull requests: 14
Past year issues: 1
Past year pull requests: 22
Past year average time to close issues: N/A
Past year average time to close pull requests: 2 days
Past year issue authors: 1
Past year pull request authors: 7
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.86
Past year merged pull request: 13
Past year bot issues: 0
Past year bot pull requests: 2
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 (29)
- 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: 1,008,599,614 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: 189
- 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.1 (published about 2 months ago)
- Last Synced: 2026-04-28T22:02:37.370Z (1 day ago)
- Versions: 91
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 504,618,114 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.1 (published about 2 months ago)
- Last Synced: 2026-04-27T17:01:14.342Z (3 days ago)
- Versions: 91
- Dependent Packages: 41
- Dependent Repositories: 37,625
- Downloads: 503,981,500 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)
debian-13: ruby-rubocop-ast
- Homepage: https://github.com/rubocop/rubocop-ast
- Documentation: https://packages.debian.org/trixie/ruby-rubocop-ast
- Licenses: mit
- Latest release: 1.24.0-2 (published 3 months ago)
- Last Synced: 2026-03-14T19:18:28.937Z (about 2 months 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: mit
- Latest release: 1.24.0-2 (published 3 months ago)
- Last Synced: 2026-03-14T02:17:43.494Z (about 2 months 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: mit
- Latest release: 1.24.0-2 (published 3 months ago)
- Last Synced: 2026-03-09T18:22:42.988Z (about 2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: ruby-rubocop-ast
- Homepage: https://github.com/rubocop/rubocop-ast
- Licenses: mit
- Latest release: 0.6.0-1 (published 3 months ago)
- Last Synced: 2026-03-13T13:35:45.456Z (about 2 months 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: mit
- Latest release: 1.24.0-2 (published 3 months ago)
- Last Synced: 2026-03-11T19:19:29.395Z (about 2 months 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: mit
- Latest release: 1.24.0-2 (published 3 months ago)
- Last Synced: 2026-03-13T15:48:01.251Z (about 2 months 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.12033108644827