You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint --no-cache --config ~/com.raywenderlich.swiftlint.yml
Linting Swift files in current working directory
Linting 'LintingApp.swift' (2/2)
Linting 'ContentView.swift' (1/2)
/Users/sarah/Desktop/Linting/Linting/ContentView.swift:11:33: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes)
/Users/sarah/Desktop/Linting/Linting/ContentView.swift:12:32: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes)
/Users/sarah/Desktop/Linting/Linting/ContentView.swift:13:27: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes)
Done linting! Found 3 violations, 0 serious in 2 files.
The rule has an option attributes_with_arguments_always_on_line_above which is true by default. The violation message has also been improved by #5108 meanwhile but not yet released.
New Issue Checklist
Describe the bug
The 'attributes' rule states "Attributes should be on their own lines in functions and types, but on the same line as variables and imports"
But it flags property wrapper lines like these even though they are not functions or types:
Complete output when running SwiftLint, including the stack trace and command used
Environment
Using the Kodeco / Ray Wenderlich yaml file:
https://raw.githubusercontent.com/kodecocodes/swift-style-guide/main/com.raywenderlich.swiftlint.yml
But the relevant lines are:
The text was updated successfully, but these errors were encountered: