Skip to content
Fork of Rubocop without all of the 'cop' stuff. ACAB.
Ruby Other
  1. Ruby 99.8%
  2. Other 0.2%
Branch: trunk
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Drop support for Ruby 2.3 Apr 12, 2020
.github Cut 0.85 Jun 1, 2020
assets Change organization URL to rubocop-hq May 31, 2018
bin Use bundle in bin/console Jul 25, 2019
config Add `Style/RedundantRegexpCharacterClass` cop Jun 1, 2020
docs [Docs] Migrate a legacy page that got forgotten Jun 6, 2020
exe Rename executable Jun 7, 2020
legacy-docs [Docs] Kill the last remaining legacy pages Jun 6, 2020
lib Add Registry#dismiss with lazier registry enrolling Jun 6, 2020
logo Larger and borderless logo Jun 7, 2020
relnotes Cut 0.85 Jun 1, 2020
spec Update references from exe/rubocop to exe/ruby_lint Jun 7, 2020
tasks Use version without patch in antora's config Jun 3, 2020
.dir-locals.el Add a .dir-locals.el May 21, 2020
.editorconfig Add an `.editorconfig` file (#3748) Dec 1, 2016
.gitattributes Change merge driver for CHANGELOG.md to resolve conflict problem Oct 11, 2016
.gitignore Update .gitignore May 28, 2020
.readthedocs.yml [Docs] Kill the last remaining legacy pages Jun 6, 2020
.rspec Specify `--require spec_helper` in .rspec Mar 1, 2017
.rubocop.yml Add ignore pattern for spec example descriptions May 21, 2020
.rubocop_todo.yml [Fix #7971] Fix --disable-uncorrectable not updating uncorrected code… May 31, 2020
.simplecov Add .simplecov to rubocop default include list Apr 20, 2020
.yardopts Hide void return of methods in YARD documentation Jun 10, 2013
CHANGELOG.md [Fix #8096] Fix a false positive for `Lint/SuppressedException` Jun 5, 2020
CODE_OF_CONDUCT.md Add Contributor Covenant Code of Conduct [closes #2] Jun 7, 2020
CONTRIBUTING.md [Fix #8057] Update document links May 29, 2020
Gemfile Bump Rake to 13 series May 29, 2020
LICENSE.txt Update Copyright year to 2020 Feb 4, 2020
README.md Fix path to logo in README Jun 7, 2020
Rakefile Remove deprecated development Rake tasks Mar 2, 2020
mkdocs.yml [Docs] Kill the last remaining legacy pages Jun 6, 2020
readthedocs.yml Specify `stable` to build image on Read the Docs Feb 12, 2019
ruby_lint.gemspec Rename rubocop to ruby_lint in most of gemspec Jun 7, 2020

README.md

ALERT: WORK IN PROGRESS 🚧

This is a fork and rename of rubocop

It is in the process of being renamed to ruby_lint in all of the places

The goal of this project is for the rubocop folks to merge this back into rubocop project, and rename its org/repo/domain/etc

The goal is NOT to maintain an ongoing parity fork of an active project

PRs are welcome and appreciated ❤️


RubyLint Logo


Gem Version CircleCI Status Actions Status Coverage Status Code Climate Inline docs SemVer

Patreon OpenCollective OpenCollective Tidelift

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 you.

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

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's development is moving at a very rapid pace and there are often backward-incompatible changes between minor releases (since we haven't reached version 1.0 yet). To prevent an unwanted RuboCop update you might want to use a conservative version lock in your Gemfile:

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

Quickstart

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

$ cd my/cool/ruby/project
$ rubocop

Documentation

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

Compatibility

RuboCop supports the following Ruby implementations:

  • MRI 2.4+
  • JRuby 9.2+

Team

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

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 and Open Collective.

Open Collective Backers

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

Open Collective Sponsors

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

Changelog

RuboCop's changelog is available here.

Copyright

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

You can’t perform that action at this time.