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

Display version with cop added when pending cops warning #7765

Merged
merged 1 commit into from Feb 29, 2020

Commits on Feb 29, 2020

  1. Display version with cop added when pending cops warning

    Follow up of rubocop#7757 (comment).
    
    When warning about a pending cop, this PR displays the version with the cop added.
    
    ## Before
    
    ```console
    % rubocop
    The following cops were added to RuboCop, but are not configured. Please
    set Enabled to either `true` or `false` in your `.rubocop.yml` file:
     - Style/HashEachMethods
     - Style/HashTransformKeys
     - Style/HashTransformValues
    ```
    
    ## After
    
    ```console
    % rubocop
    The following cops were added to RuboCop, but are not configured. Please
    set Enabled to either `true` or `false` in your `.rubocop.yml` file:
     - Style/HashEachMethods (0.80)
     - Style/HashTransformKeys (0.80)
     - Style/HashTransformValues (0.80)
    For more information: https://docs.rubocop.org/en/latest/versioning/
    ```
    koic committed Feb 29, 2020
    Copy the full SHA
    20350e8 View commit details
    Browse the repository at this point in the history