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

Fix RSpec/SortMetadata cop to sort strings and variables first #1948

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 10, 2024

  1. Fix RSpec/SortMetadata cop to limit sorting to trailing metadata

    Metadata processed by RSpec is:
    - the last argument when it's a hash
    - the trailing arguments when they are symbols
    
    Only this metadata is sorted by this cop.
    
    If the second argument to a `context`/`describe` block is used as an
    additional description, it is not sorted anymore. This fixes rubocop#1946.
    cbliard committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    9fbf40d View commit details
    Browse the repository at this point in the history