You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded to latest rubocop gem version and wanted to use as usual the command rubocop-autoccorect-project.
The command that is runned is : bundle exec rubocop -a --format emacs /path/to/repo/
Unfortunately, they apparently decided to change the -aargument in favor to -A.
Therefore autcorrect no longer autocorrect on this rubocop version.
Versions
➜ Repo git:(master) ✗ emacs --version
GNU Emacs 27.1.50
Copyright (C) 2020 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
➜ Repo git:(master) ✗ rubocop --version
1.9.1
The man page of rubocop about autocorrect :
-A, --auto-correct-all Auto-correct offenses (safe and unsafe)
--disable-pending-cops Run without pending cops.
--enable-pending-cops Run with pending cops.
--ignore-disable-comments Run cops even when they are disabled locally
with a comment.
The text was updated successfully, but these errors were encountered:
I think having both commands is a better alternative :
You might want to run the safe auto correct most of the time, and in some rare case run it in unsafe mode for a specific file/project ponctually.
In this case, the approach with the defcustom requires the user to change the default command, run the command, and update it back for future use
Hi !
Thanks for the package ! Very useful !
Quick description
I just upgraded to latest rubocop gem version and wanted to use as usual the command
rubocop-autoccorect-project
.The command that is runned is :
bundle exec rubocop -a --format emacs /path/to/repo/
Unfortunately, they apparently decided to change the
-a
argument in favor to-A
.Therefore
autcorrect
no longer autocorrect on this rubocop version.Versions
The man page of rubocop about autocorrect :
The text was updated successfully, but these errors were encountered: