All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.6 - 2024-07-21
- Don't fail
--check
when no issues and no lock file present. (@skryukov)
0.3.5 - 2024-06-24
- Add support for the RuboCop
--list
option. (@skryukov)
- 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)
0.3.4 - 2023-10-26
- Use JSON.dump instead of to_json for stable results encoding. (@skryukov)
0.3.3 - 2023-10-18
- Throw an error when the
--check
option is used and file hash is outdated. (@skryukov) - Wrap RuboCop errors to make output more pleasant. (@skryukov)
0.3.2 - 2023-10-10
- Handle syntax errors in inspected files. (@skryukov)
0.3.1 - 2022-11-29
- More straightforward way of including RuboCop patch for Require mode. (@skryukov)
0.3.0 - 2022-10-26
-
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
- Issues with the same location ordered by the message. (@skryukov)
0.2.0 - 2022-07-26
- Autocorrection options. (@skryukov)
Run
rubocop-gradual -a
andrubocop-gradual -A
to autocorrect new and changed files and then update the lock file.
-
Rename
--ci
to--check
option. (@skryukov) -
Rename
-u, --update
to-U, --force-update
option. (@skryukov)
0.1.1 - 2022-07-05
parallel
gem is used to speed up results parsing. (@skryukov)
- Fixed multiline issues hash calculation. (@skryukov)
0.1.0 - 2022-07-03
- Initial implementation. (@skryukov)