0.01
No release in over a year
RuboCop extensions for lint only changed files in PRs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 1.0.0
 Project Readme

RuboCop Changed

Reduce RuboCop's CI time.

RuboCop extensions for lint only changed files in CI.

Git is required to work and assumes that the .git folder exists.

Installation

Add gem to your Gemfile

gem 'rubocop-changed'

Usage

RuboCop configuration file

Add to your .rubocop_for_ci.yml (for use only on CI):

require: rubocop-changed

Or add argument:

rubocop --require rubocop-changed

Additionally

The default branch for comparing gets by:

git remote show origin | sed -n '/HEAD branch/s/.*: //p' | xargs # usually it's main or master

For custom branch set env: RUBOCOP_CHANGED_BRANCH_NAME

Thanks

Similar Gems

The difference is the current extension didn't try to wrap RuboCop. Instead, it just patched a small part of the code, which allows you to use $ rubocop as before.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dukaev/rubocop-changed. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Rubocop::Changed project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.