swiftlang/swift-format

Rule for putting annotations into separate lines

Closed this issue · 1 comments

We often put various annotations such as @available or @inlinable in separate lines before methods or types. A rule to enforce that formatting would be great.

@usableFromInline
@SomeMacro
struct Foo {
}

Synced to Apple’s issue tracker as rdar://132008860