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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
isAwaited on any node: whether it sits under an await in its own expression (try await f(), (try? await f()) ?? []). The search stops at the enclosing statement, closure or declaration, so a call inside Task { } or inside an awaited call's closure is not awaited. For rules such as "database access is awaited".
FunctionCallExprSyntax.argument(labeled:) returns the argument with a label, and passesClosure says whether a
closure is passed, trailing or as an argument.
Scope.calls(named:) takes a Set<String>, for a list of names built at run time.
Baseline(covering:) builds a baseline that accepts exactly the given findings, one File.swift:Declaration entry
each, and swiftArrayLiteral renders it for pasting into a test. It lands a rule on code that already breaks it
without hand-writing the entries.