-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
bugUnexpected and reproducible misbehavior.Unexpected and reproducible misbehavior.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.Issue to be taken up by new contributors yet unfamiliar with the project.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
In the following example, async_without_await suggest to remove async from init method, but it causes an error.
actor A {
init() async {
foo()
}
func foo() {}
}
This is only for actor as we can write without await, so it doesn't affect other data types.
Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.
$ swiftlint lintEnvironment
- SwiftLint version: 0.63.0
- Xcode version: 26.0.1
- Installation method used: Universal macOS Binary
- Configuration file:
only_rules:
- async_without_awaitAre you using nested configurations? If so, paste their
relative paths and respective contents.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugUnexpected and reproducible misbehavior.Unexpected and reproducible misbehavior.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.Issue to be taken up by new contributors yet unfamiliar with the project.