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

Disable TrailingComma* cops #453

Closed
wants to merge 1 commit into from

Commits on Aug 31, 2022

  1. Disable TrailingComma* cops

    These cops used to be configured with `EnforcedStyleForMultiline: consistent_comma`
    but it was changed in standardrb@a7156b1
    because it can cause some weird contortions, see: standardrb#133
    
    I totally agree that this cop resulting in such horrible contorsion
    is broken, but I don't understand why that would justify to switch
    to a different style rather than to just disable the cop.
    
    Trailing comma in multiline hashes & co have the major advantage of
    reducing diff noise when adding or removing an element.
    byroot committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    c915889 View commit details
    Browse the repository at this point in the history