Skip to content

Rule request: order of get set in protocol #1504

Closed
@marcelofabri

Description

When defining a property in a protocol, the order of accessors should be get set

protocol Foo {

    // ok
    var bar: String { get set }

    // not ok
    var bar: String { set get }
}

Metadata

Assignees

No one assigned

    Labels

    rule-requestRequests for a new rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions