Enforce attributes to be on the same line only if they don't have arguments #5618
Labels
discussion
Topics that cannot be categorized as bugs or enhancements yet. They require further discussions.
enhancement
Ideas for improvements of existing features and rules.
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.1
Homebrew
# insert yaml contents here
If so, paste their relative paths and respective contents.
xcodebuild -version
)?Xcode 15.4
Build version 15F31d
echo "[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 use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: