Skip to content

swift-format should not remove "private" from extensions #1036

Closed
@eeckstein

Description

@eeckstein

To reproduce:

private extension Int {
func foo() {}
}

->

extension Int {
fileprivate func foo() {}
}


This is not ideal because I want the whole extension to be private without needing to take care of each member of the extension separately. It's easy to forget to add fileprivate for a specific member.

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