False positive for attributes
rule when using @MainActor
#4599
Labels
bug
Unexpected and reproducible misbehavior.
attributes
rule when using @MainActor
#4599
New Issue Checklist
Describe the bug
It seems using
@MainActor
triggers a false positive depending on where@MainActor
is exactly. See example below.Complete output when running SwiftLint, including the stack trace and command used
Environment
xcodebuild -version
)?The order of the attributes is important:
I also tried using
@main
instead of@NSApplicationMain
with the same result.Interestingly, using e.g.
@main
and@NSApplicationMain
but without@MainActor
does not trigger a warning, regardless of the order. So it seems like the problem is@MainActor
.The text was updated successfully, but these errors were encountered: