Skip to content

Architecture: use swift-llm-check 0.5.0's built-in detectors - #12

Merged
mackoj merged 1 commit into
mainfrom
chore/llm-check-0.5.0
Nov 14, 2026
Merged

mackoj merged 1 commit into
mainfrom
chore/llm-check-0.5.0

Conversation

@mackoj

@mackoj mackoj commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Bumps Architecture/ to swift-llm-check 0.5.0 and drops the local copies of detectors the library now ships.

  • xcTestImports, disabledTests, unexplainedKnownIssues, uncommentedUncheckedSendable → Scope built-ins; their DetectorTests are removed.
  • impureCode uses Match.erased instead of rebuilding Match<Syntax> by hand.
  • Repo-specific detectors (imports, purity, value types, conformances, TODO stubs) stay, with their tests.
  • The built-in uncommentedUncheckedSendable no longer counts /// doc comments, so the rule's how-to-fix says to use a // comment; docs/architecture-rules.md regenerated. No source code is flagged.

swift test --package-path Architecture passes (20 tests). No library or test source changed.

Bump swift-llm-check to 0.5.0 and replace the local xcTestImports,
disabledTests, unexplainedKnownIssues and uncommentedUncheckedSendable
detectors (and their detector tests) with the library's built-ins. The
no-I/O detector uses Match.erased.

The built-in no longer accepts a /// doc comment as the justification
for @unchecked Sendable, so the rule's how-to-fix now says so.
@mackoj
mackoj merged commit 46bc486 into main Nov 14, 2026
16 checks passed
@mackoj
mackoj deleted the chore/llm-check-0.5.0 branch November 14, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant