Skip to content

Rubocop 1.9.1 changed the cli argument to auto-correct from -a to -A #34

@ghost

Description

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 -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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions