Skip to content

Ruby: Revise a rule related to optional arguments and keyword arguments #60

@nekketsuuu

Description

@nekketsuuu

Rubocop 0.80.0 (released 2020-02-18) removed Style/BracesAroundHashParameters cop. rubocop/rubocop#7641 says the removal was because the curly braces may have the meaning since Ruby 2.7.

styleguide/.rubocop.yml

Lines 264 to 266 in 590bca6

# [SHOULD] Omit `{ }` of a hash literal, when put on the end of an argument list.
Style/BracesAroundHashParameters:
EnforcedStyle: no_braces

I think it's a good time to reconsider the above rule.

My opinion is:

Any thoughts?

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