Skip to content

Commit

Permalink
Update rubocop command (#316)
Browse files Browse the repository at this point in the history
`--auto-correct` got deprecated in
rubocop/rubocop@aabdf0a

---------

Signed-off-by: Dusan <dusanuveric@protonmail.com>
  • Loading branch information
uvera authored Aug 27, 2024
1 parent 3e347cf commit 73617ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog].

## Unreleased
### Formatters
* [`rubocop`](https://github.com/rubocop/rubocop) changed to use `-a` instead of deprecated `--auto-correct` ([#316]).

[#316]: https://github.com/radian-software/apheleia/pull/316

## 4.2 (released 2024-08-03)
### Changes
* Custom Emacs Lisp formatting functions have the option to report an
Expand Down
2 changes: 1 addition & 1 deletion apheleia-formatters.el
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
(python3-json
. ("python3" "-m" "json.tool"
(apheleia-formatters-indent "--tab" "--indent")))
(rubocop . ("rubocop" "--stdin" filepath "--auto-correct"
(rubocop . ("rubocop" "--stdin" filepath "-a"
"--stderr" "--format" "quiet" "--fail-level" "fatal"))
(ruby-standard . ("standardrb" "--stdin" filepath "--fix" "--stderr"
"--format" "quiet" "--fail-level" "fatal"))
Expand Down

0 comments on commit 73617ab

Please sign in to comment.