Repository navigation
Conversation
Locale+Identifier.swift was the one file outside #if targetEnvironment(simulator), so its 950-case enum compiled into device builds. LegibilityWeight's CustomStringConvertible conformance named iOS 13 only.
Seven rules from CODING_STANDARDS.md: simulator-only sources, the import budget, one availability floor, AnyView only in apply(to:), erased payloads name their type, and captions name their case. Detector tests and the generated docs/architecture-rules.md included.
This was referenced Nov 14, 2026
Owner
Author
|
Superseded by #12 |
mackoj
added a commit
that referenced
this pull request
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Architecture/: a test-only package (swift-tools 6.0, macOS) on swift-llm-check with seven rules taken from the code's existing conventions, now written down inCODING_STANDARDS.md:sources-are-simulator-only: every file inSourcesis wrapped, whole, in#if targetEnvironment(simulator)imports-stay-within-budget: Foundation, SwiftUI, CoreData onlyavailability-names-the-package-floorandpublic-types-declare-availabilityany-view-stays-in-apply:AnyViewonly inEnvironmentValueItem.apply(to:)erased-payloads-name-their-type:case dynamicTypeSize(Any) // DynamicTypeSizedescriptions-name-their-case: the caption for.name(…)starts with"name: "Each has detector tests on snippets;
docs/architecture-rules.mdis generated from them.Two real violations fixed:
Locale+Identifier.swiftwas the only file outside the simulator guard (a 950-case enum compiled into device builds), andLegibilityWeight's conformance said@available(iOS 13.0, *).Tests: the test target was an empty placeholder. It now has five XCTest cases (simulator-only, like the library).
CI (there was none): macOS host build +
swift test+ architecture rules;xcodebuild teston an iOS simulator; builds for tvOS, watchOS and visionOS simulators; actionlint and zizmor on the workflows.AGENTS.md/CLAUDE.mdfor agents.The library's
swift-tools-version: 5.7.1and platforms are unchanged.