swiftlang / swift-format

Formatting technology for Swift source code
Apache License 2.0
2.45k stars 222 forks source link

Rule for putting annotations into separate lines #773

Closed FranzBusch closed 1 month ago

FranzBusch commented 1 month ago

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 {
}
ahoppen commented 1 month ago

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