Skip to content

Restrict opening_brace to single-line declarations #1921

Closed
@lilyball

Description

New Issue Checklist

Rule Request

I'd like to be able to configure the opening_brace rule so it only applies to single-line declarations. If I'm splitting a method across multiple lines then it's usually a good idea to put the opening brace on a new line as well, but single-line declarations should still always have the brace on the same line.

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.wontfixIssues that became stale and were auto-closed by a bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions