Releases: skryukov/rubocop-gradual
Releases · skryukov/rubocop-gradual
v0.3.6
v0.3.5
Added
- Add support for the RuboCop
--list
option. (@skryukov)
Fixed
- Respect files passed to RuboCop in required mode. (@skryukov)
- Exclude deleted files when running
--staged
. (@dmorgan-fa) - Don't show "EVEN BETTER" instruction when all issues are fixed. (@skryukov)
New Contributors
- @dmorgan-fa made their first contribution in #27
Full Changelog: v0.3.4...v0.3.5
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
What's Changed
Added
-
Partial linting (experimental). (@skryukov)
Partial linting is useful when you want to run RuboCop Gradual on a subset of files, for example, on changed files in a pull request:
rubocop-gradual path/to/file # run `rubocop-gradual` on a subset of files
rubocop-gradual --staged # run `rubocop-gradual` on staged files
rubocop-gradual --unstaged # run `rubocop-gradual` on unstaged files
rubocop-gradual --commit origin/main # run `rubocop-gradual` on changed files since the commit
# it's possible to combine options with autocorrect:
rubocop-gradual --staged --autocorrect # run `rubocop-gradual` with autocorrect on staged files
-
Require mode (experimental). (@skryukov)
RuboCop Gradual can be used in "Require mode", which is a way to replace
rubocop
withrubocop-gradual
:
# .rubocop.yml
require:
- rubocop-gradual
- Built-in Rake tasks. (@skryukov)
# Rakefile
require "rubocop/gradual/rake_task"
RuboCop::Gradual::RakeTask.new
Fixed
- Issues with the same location ordered by the message. (@skryukov)
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
Added
- Autocorrection options. (@skryukov)
Runrubocop-gradual -a
andrubocop-gradual -A
to autocorrect new and changed files and then update the lock file.
Changed
-
Rename
--ci
to--check
option. (@skryukov) -
Rename
-u, --update
to-U, --force-update
option. (@skryukov)
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Initial implementation
Added
- Initial implementation. (@skryukov)