Pattern: Malformed attribute
Issue: -
Attributes should be on their own lines in functions and types, but on the same line as variables and imports.
Examples of correct code:
@objc var x: String
@objc private var x: String
@nonobjc var x: String
@IBOutlet private var label: UILabel
@IBOutlet @objc private var label: UILabel
Examples of incorrect code:
@objc
↓var x: String
@objc
↓var x: String
@objc
private ↓var x: String
@nonobjc
↓var x: String
@IBOutlet
private ↓var label: UILabel