Open Reyshawn opened 3 weeks ago
I wouldn't consider this as a bug. The implementation is just giving always_on_same_line
precedence over attributes_with_arguments_always_on_line_above
which might be exactly the behavior others want. So I'm not sure whether and, if so, how to change it.
New Issue Checklist
Describe the bug
When I set the
@objc
attribute always at the same line and set the optionattributes_with_arguments_always_on_line_above
totrue
.It triggers a warning when I put the
@objc(addEpisodesObject:)
, which has arguments on its own line;How could I enforce attributes to be on their own line if they have arguments, and on the same line if they don't have arguments?
Environment
swiftlint version
to be sure)? 0.55.1xcodebuild -version
)? Xcode 15.4 Build version 15F31decho "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more complex, you can useswiftlint lint --path [file here] --no-cache --enable-all-rules
.