Skip to content

0.3.0

Choose a tag to compare

@mackoj mackoj released this 10 Nov 22:49
· 44 commits to main since this release
ce9fea2

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.