Skip to content

Layout/SpaceInsideBlockBraces is unnecessarily stricter than the style guide #66

@osyoyu

Description

@osyoyu

The Ruby style guide explicitly allows both of the following styles. The official Rubocop configuration accepts only the latter.

# good
[1, 2, 3].each {|num| puts num }
[1, 2, 3].each { |num| puts num }

There seems no way exists to allow both styles without entirely disabling Layout/SpaceInsideBlockBraces (unwanted styles such as [1, 2, 3].each{|foo| bar} will also be allowed).
Is that an option?

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