github.com/rubocop-hq/rubocop

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

Open this visualization on its own page →

Contributors

806

Lines of Code

42,317

From

2012-04-21

To

2020-12-27

About rubocop-hq/rubocop

RuboCop is a Ruby static code analyzer and formatter that enforces guidelines from the community Ruby Style Guide. Out of the box, it detects code quality issues and style violations in Ruby projects, and can automatically fix many of them. The tool is highly configurable, allowing developers to customize its behavior through various configuration options to match their specific project needs.

The project supports Ruby 2.0+ for code analysis and runs on modern Ruby implementations including MRI 2.7+ and JRuby 9.4+. RuboCop can be run from the command line by simply typing `rubocop` in a project folder, and it also includes a built-in LSP server for integration with popular code editors. The tool is actively maintained by a team of core developers led by Bozhidar Batsov, with contributions from a large community of developers.

RuboCop is positioned as a foundational tool for Ruby development, used widely enough that maintainers encourage companies using it significantly to consider sponsoring its development. The project welcomes community contributions, particularly in the form of new cops that implement additional rules from the Ruby Style Guide, and provides detailed contribution guidelines for developers interested in extending its functionality.

Share this video