Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename custom rake task to rubocop:autocorrect #10709

Merged

Commits on Jun 11, 2022

  1. Rename custom rake task to rubocop:autocorrect

    Follow up rubocop#10547.
    
    This PR renames custom rake task from `rubocop:auto_correct`
    to `rubocop:autocorrect`.
    
    ## Before
    
    ```console
    rake rubocop                              # Run RuboCop
    rake rubocop:auto_correct                 # Autocorrect RuboCop offenses
    ```
    
    ## After
    
    ```console
    rake rubocop                             # Run RuboCop
    rake rubocop:autocorrect                 # Autocorrect RuboCop offenses
    ```
    
    For compatibility, `rubocop:auto_correct` task is left, but the task is
    deprecated and does not display in `rake -T`.
    
    When executed, the following warning will be displayed:
    
    ```console
    % bundle exec rake rubocop:auto_correct
    rubocop:auto_correct task is deprecated; use rubocop:autocorrect task instead.
    Running RuboCop...
    ```
    koic committed Jun 11, 2022
    Copy the full SHA
    742f3e4 View commit details
    Browse the repository at this point in the history