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
The line @Environment(\.presentationMode) private var presentationMode is complaining with an attributes violation: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes).
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint
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 1 violation, 0 serious in 1639 files.
Environment
SwiftLint version (run swiftlint version to be sure)? 0.52.3
Installation method used (Homebrew, CocoaPods, building from source, etc)? CocoaPods
Which Xcode version are you using (check xcodebuild -version)? 14.3
// This triggers a violation:
@Environment(\.presentationMode)privatevarpresentationMode
The text was updated successfully, but these errors were encountered:
@SimplyDanny maybe we can improve the text Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes) to be Attributes should be on their own lines in functions, variables with attributes and types, but on the same line as variables and imports (attributes) but I'm wondering if we can change the text if attributes_with_arguments_always_on_line_above is false?
New Issue Checklist
Describe the bug
The line
@Environment(\.presentationMode) private var presentationMode
is complaining with an attributes violation:Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes)
.Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)?0.52.3
CocoaPods
xcodebuild -version
)?14.3
The text was updated successfully, but these errors were encountered: