Skip to content

Releases: skryukov/rubocop-gradual

v0.3.4

26 Oct 09:15
efbe81c
Compare
Choose a tag to compare

Fixed

  • Use JSON.dump instead of to_json for stable results encoding. (@skryukov)

Full Changelog: v0.3.3...v0.3.4

v0.3.3

18 Oct 17:46
0cbe0ef
Compare
Choose a tag to compare

What's Changed

Fixed

  • Throw an error when the --check option is used and file hash is outdated. (@skryukov)
  • Wrap RuboCop errors to make output more pleasant. (@skryukov)

Full Changelog: v0.3.2...v0.3.3

v0.3.2

18 Oct 17:22
e04bb25
Compare
Choose a tag to compare

What's Changed

Fixed

  • Handle syntax errors in inspected files. (@skryukov)

Full Changelog: v0.3.1...v0.3.2

v0.3.1

29 Nov 08:27
6cdd093
Compare
Choose a tag to compare

What's Changed

Fixed

  • More straightforward way of including RuboCop patch for Require mode. (@skryukov)
# .rubocop.yml

require:
  - rubocop/gradual/patch

Full Changelog: v0.3.0...v0.3.1

v0.3.0

26 Oct 17:46
90d2f28
Compare
Choose a tag to compare

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 with rubocop-gradual:

# .rubocop.yml

require:
  - rubocop-gradual
# 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

26 Jul 09:51
v0.2.0
37b86f3
Compare
Choose a tag to compare

What's Changed

Added

  • Autocorrection options. (@skryukov)
    Run rubocop-gradual -a and rubocop-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

05 Jul 14:35
v0.1.1
3e9ed1e
Compare
Choose a tag to compare

Changed

  • parallel gem is used to speed up results parsing. (@skryukov)

Fixed

  • Fixed multiline issues hash calculation. (@skryukov)

Full Changelog: v0.1.0...v0.1.1

Initial implementation

03 Jul 17:20
v0.1.0
8e26503
Compare
Choose a tag to compare

Added