A summary of data about the Ruby ecosystem.

https://github.com/rubocop/rubocop

A Ruby static code analyzer and formatter, based on the community Ruby style guide.
https://github.com/rubocop/rubocop

Keywords

code-formatter hacktoberfest linter rubocop ruby static-code-analysis

Keywords from Contributors

activerecord activejob mvc rubygems rspec rack static-analysis ruby-gem crash-reporting sinatra

Last synced: about 7 hours ago
JSON representation

Repository metadata

A Ruby static code analyzer and formatter, based on the community Ruby style guide.

README.md


Ruby Style Guide
Gem Version
CI
Discord

Role models are important.
-- Officer Alex J. Murphy / RoboCop

RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter. Out of the box it
will enforce many of the guidelines outlined in the community Ruby Style
Guide
. Apart from reporting the problems discovered in your code,
RuboCop can also automatically fix many of them for you.

RuboCop is extremely flexible and most aspects of its behavior can be tweaked via various
configuration options.


Patreon
OpenCollective
OpenCollective
Tidelift

Working on RuboCop is often fun, but it also requires a great deal of time and energy.

Please consider financially supporting its ongoing development.

Installation

RuboCop's installation is pretty standard:

gem install rubocop

If you'd rather install RuboCop using bundler, add a line for it in your
Gemfile (but set the require option to false, as it is a standalone tool):

gem 'rubocop', require: false

RuboCop is stable between minor versions, both in terms of API and cop configuration.
We aim to ease the maintenance of RuboCop extensions and the upgrades between RuboCop
releases. All big changes are reserved for major releases.
To prevent an unwanted RuboCop update you might want to use a conservative version lock
in your Gemfile:

gem 'rubocop', '~> 1.81', require: false

See our versioning policy for further details.

Quickstart

Just type rubocop in a Ruby project's folder and watch the magic happen.

cd my/cool/ruby/project
rubocop

[!TIP]

You can also use this magic in your favorite editor with RuboCop's
built-in LSP server.

Documentation

You can read a lot more about RuboCop in its official docs.

Compatibility

RuboCop officially supports the following runtime Ruby implementations:

  • MRI 2.7+
  • JRuby 9.4+

It targets Ruby 2.0+ for code analysis.

See the compatibility documentation for further details.

Readme Badge

If you use RuboCop in your project, you can include one of these badges in your readme to let people know that your code is written following the community Ruby Style Guide.

Ruby Style Guide

Ruby Style Guide

Here are the Markdown snippets for the two badges:

[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)

[![Ruby Style Guide](https://img.shields.io/badge/code_style-community-brightgreen.svg)](https://rubystyle.guide)

Team

Here's a list of RuboCop's core developers:

See the team page for more details.

Logo

RuboCop's logo was created by Dimiter Petrov. You can find the logo in various
formats here.

The logo is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.

Contributors

Here's a list of
all the people who have contributed to the development of RuboCop.

I'm extremely grateful to each and every one of them!

If you'd like to contribute to RuboCop, please take the time to go
through our short
contribution guidelines.

Converting more of the Ruby Style Guide into RuboCop cops is our top
priority right now. Writing a new cop is a great way to dive into RuboCop!

Of course, bug reports and suggestions for improvements are always
welcome. GitHub pull requests are even better! :-)

Funding

While RuboCop is free software and will always be, the project would benefit immensely from some funding.
Raising a monthly budget of a couple of thousand dollars would make it possible to pay people to work on
certain complex features, fund other development related stuff (e.g. hardware, conference trips) and so on.
Raising a monthly budget of over $5000 would open the possibility of someone working full-time on the project
which would speed up the pace of development significantly.

We welcome both individual and corporate sponsors! We also offer a
wide array of funding channels to account for your preferences
(although
currently Open Collective is our
preferred funding platform).

If you're working in a company that's making significant use of RuboCop we'd
appreciate it if you suggest to your company to become a RuboCop sponsor.

You can support the development of RuboCop via
GitHub Sponsors,
Patreon,
PayPal,
Open Collective
and Tidelift
.

[!NOTE]

If doing a sponsorship in the form of donation is problematic for your company
from an accounting standpoint, we'd recommend the use of Tidelift, where you
can get a support-like subscription instead.

Open Collective for Individuals

Support us with a monthly donation and help us continue our activities. [Become a backer]






























Open Collective for Organizations

Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]






























Release Notes

RuboCop's release notes are available here.

Copyright

Copyright (c) 2012-2025 Bozhidar Batsov. See LICENSE.txt for
further details.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 12,481
Total Committers: 1,027
Avg Commits per committer: 12.153
Development Distribution Score (DDS): 0.797

Commits in past year: 935
Committers in past year: 69
Avg Commits per committer in past year: 13.551
Development Distribution Score (DDS) in past year: 0.692

Name Email Commits
Koichi ITO k****o@g****m 2529
Bozhidar Batsov b****r@b****m 1137
Jonas Arvidsson j****4@g****m 888
Bozhidar Batsov b****r@t****m 871
Daniel Vandersluis d****s@g****m 468
Alex Dowad a****g@g****m 412
Ted Johansson d****i@g****m 380
Yuji Nakayama n****j@g****m 362
Ryan Rosenblum r****m@g****m 355
Masataka Pocke Kuwabara k****a@p****e 265
Teemu t****u@a****n 263
Earlopain 1****n 249
Marc-Andre Lafortune g****b@m****a 238
Benjamin Quorning b****n@q****t 220
fatkodima f****3@g****m 181
Garett Arrowood g****d@g****m 152
ydah 1****h 118
Genadi Samokovarov g****v@g****m 111
viralpraxis i****k@g****m 107
Tejas Bubane t****e@g****m 96
Andreas Bühmann d****v@u****e 94
John Backus j****s@g****m 71
r7kamura r****a@g****m 67
Bill Ruddock b****k@g****m 62
David Rodríguez d****z@r****t 59
Lovro Bikic l****c@i****r 44
Owen Stephens o****n@o****k 41
hoshinotsuyoshi g****0@g****m 39
David Rodríguez d****z@g****m 39
Evgeni Dzhelyov e****v@g****m 38
and 997 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 5 days ago

Total issues: 1,169
Total pull requests: 2,710
Average time to close issues: 5 months
Average time to close pull requests: 18 days
Total issue authors: 567
Total pull request authors: 200
Average comments per issue: 1.99
Average comments per pull request: 1.32
Merged pull request: 2,260
Bot issues: 0
Bot pull requests: 11

Past year issues: 305
Past year pull requests: 1,141
Past year average time to close issues: 15 days
Past year average time to close pull requests: 3 days
Past year issue authors: 184
Past year pull request authors: 79
Past year average comments per issue: 1.14
Past year average comments per pull request: 1.11
Past year merged pull request: 926
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

Top Issue Authors

  • ydakuka (102)
  • Earlopain (46)
  • akimd (29)
  • vlad-pisanov (27)
  • fatkodima (19)
  • viralpraxis (16)
  • stdedos (16)
  • andyw8 (14)
  • a-lavis (13)
  • bkuhlmann (13)
  • forthrin (12)
  • jcoyne (12)
  • Zopolis4 (11)
  • johnnyshields (11)
  • postmodern (11)

Top Pull Request Authors

  • koic (952)
  • Earlopain (420)
  • dvandersluis (360)
  • viralpraxis (198)
  • lovro-bikic (78)
  • sambostock (39)
  • vlad-pisanov (36)
  • fatkodima (32)
  • Zopolis4 (29)
  • jonas054 (28)
  • ydah (28)
  • r7kamura (23)
  • bquorning (22)
  • kyanagi (20)
  • tejasbubane (18)

Top Issue Labels

  • bug (429)
  • stale (129)
  • feature request (76)
  • enhancement (47)
  • duplicate (25)
  • documentation (14)
  • good first issue (14)
  • prism (11)
  • high priority (9)
  • help wanted (4)
  • maintenance (3)
  • weird ruby (2)
  • style guide (1)
  • upstream (1)
  • refactoring (1)
  • question (1)
  • performance (1)
  • hacktoberfest (1)
  • parser (1)

Top Pull Request Labels

  • stale (48)
  • documentation (22)
  • weird ruby (11)
  • dependencies (9)
  • breaking-change (5)
  • auto-merge (5)
  • upstream (2)
  • enhancement (2)
  • jruby (1)
  • high priority (1)
  • maintenance (1)
  • github_actions (1)

Package metadata

gem.coop: rubocop

RuboCop is a Ruby code style checking and code formatting tool. It aims to enforce the community-driven Ruby Style Guide.

  • Homepage: https://rubocop.org/
  • Documentation: http://www.rubydoc.info/gems/rubocop/
  • Licenses: MIT
  • Latest release: 1.81.7 (published about 1 month ago)
  • Last Synced: 2025-12-05T18:02:20.287Z (5 days ago)
  • Versions: 317
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 626,033,908 Total
  • Docker Downloads: 3,455,005,728
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.014%
    • Docker downloads count: 0.025%
    • Downloads: 0.03%
  • Maintainers (4)
rubygems.org: rubocop

RuboCop is a Ruby code style checking and code formatting tool. It aims to enforce the community-driven Ruby Style Guide.

  • Homepage: https://rubocop.org/
  • Documentation: http://www.rubydoc.info/gems/rubocop/
  • Licenses: MIT
  • Latest release: 1.81.7 (published about 1 month ago)
  • Last Synced: 2025-12-06T09:30:38.785Z (4 days ago)
  • Versions: 317
  • Dependent Packages: 12,291
  • Dependent Repositories: 115,529
  • Downloads: 626,239,365 Total
  • Docker Downloads: 3,455,005,728
  • Rankings:
    • Dependent packages count: 0.004%
    • Downloads: 0.038%
    • Docker downloads count: 0.062%
    • Average: 0.07%
    • Stargazers count: 0.1%
    • Forks count: 0.104%
    • Dependent repos count: 0.113%
  • Maintainers (4)
  • Advisories:
proxy.golang.org: github.com/rubocop/rubocop

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/rubocop/rubocop#section-documentation
  • Licenses: mit
  • Latest release: v1.81.7 (published about 1 month ago)
  • Last Synced: 2025-12-04T22:06:02.880Z (5 days ago)
  • Versions: 317
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Rankings:
    • Forks count: 0.111%
    • Stargazers count: 0.544%
    • Average: 3.424%
    • Dependent repos count: 3.48%
    • Dependent packages count: 9.561%
gem.coop: rubocop-grantbirki

RuboCop is a Ruby code style checking and code formatting tool. It aims to enforce the community-driven Ruby Style Guide.

  • Homepage: https://rubocop.org/
  • Documentation: http://www.rubydoc.info/gems/rubocop-grantbirki/
  • Licenses: MIT
  • Latest release: 1.75.3 (published 8 months ago)
  • Last Synced: 2025-12-04T22:06:00.759Z (5 days ago)
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 1,014 Total
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 32.55%
    • Downloads: 97.651%
  • Maintainers (1)
rubygems.org: rubocop-grantbirki

RuboCop is a Ruby code style checking and code formatting tool. It aims to enforce the community-driven Ruby Style Guide.

  • Homepage: https://rubocop.org/
  • Documentation: http://www.rubydoc.info/gems/rubocop-grantbirki/
  • Licenses: MIT
  • Latest release: 1.75.3 (published 8 months ago)
  • Last Synced: 2025-12-04T22:06:00.798Z (5 days ago)
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 1,014 Total
  • Rankings:
    • Dependent packages count: 14.427%
    • Dependent repos count: 44.193%
    • Average: 50.453%
    • Downloads: 92.739%
  • Maintainers (1)

Dependencies

.github/workflows/linting.yml actions
  • actions/checkout v3 composite
  • karancode/yamllint-github-action master composite
.github/workflows/rubocop.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/spell_checking.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
Gemfile rubygems
  • webmock >= 0 development
  • asciidoctor >= 0
  • bump >= 0
  • memory_profiler >= 0
  • rake ~> 13.0
  • rspec ~> 3.7
  • rubocop-performance ~> 1.15.0
  • rubocop-rake ~> 0.6.0
  • rubocop-rspec ~> 2.16.0
  • simplecov ~> 0.10, < 0.18
  • stackprof >= 0
  • test-queue >= 0
  • yard ~> 0.9
rubocop.gemspec rubygems
  • bundler >= 1.15.0, < 3.0 development
  • json ~> 2.3
  • parallel ~> 1.10
  • parser >= 3.2.0.0
  • rainbow >= 2.2.2, < 4.0
  • regexp_parser >= 1.8, < 3.0
  • rexml >= 3.2.5, < 4.0
  • rubocop-ast >= 1.24.1, < 2.0
  • ruby-progressbar ~> 1.7
  • unicode-display_width >= 2.4.0, < 3.0

Score: 39.233823637053504