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
* feat(profile): add native swift profile; release 0.7.0
Adds a first-class `swift` profile alongside rust/typescript/python/generic.
- ProfileKind::Swift wired through parse/name/for_kind and every exhaustive
match (detect, scaffold, guards, signals).
- src/profile/swift.rs: SwiftPM defaults (swift build/test, coverage via
--enable-code-coverage), .swift sources, language-agnostic signals with a
Swift fragility pattern (try!/as!/fatalError/unsafelyUnwrapped), and the
no-print-in-lib + deps-justified guards.
- detect.rs: Package.swift -> SwiftPM (Sources/* domains); *.xcodeproj /
*.xcworkspace -> Xcode-flavored with an xcodebuild note.
- CI is now runner-aware: generated ci.yml runs on macos-latest for swift
(Xcode/Swift preinstalled, no toolchain step); other profiles stay on
ubuntu-latest. meta-check/arch stay on Linux (grep-only).
- deps-justified understands SwiftPM: extracts .package(url:) names from
Package.swift.
- Tests across profile/detect/scaffold/guards + a swift init integration test.
Bumps to 0.7.0 to ship the new profile.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(swift): recognize SwiftPM test paths; harden swift_deps + fragility
Addresses adversarial review findings on the new swift profile:
- is_test_path now recognizes SwiftPM/XCTest conventions (capital-T `Tests/`
dir, `<Name>Tests.swift`), so Swift test files are excluded from guards and
arch signals — no more false no-print-in-lib failures under `check --strict`
or bogus fragility tickets on `try!` in test setup.
- swift_deps skips whole-line `//` comments so a commented-out `.package(url:)`
isn't counted as a declared dependency.
- Swift fragility signal also flags preconditionFailure( / assertionFailure(.
Tests: is_test_path swift cases, a no-print-in-lib Tests/ exclusion test, and a
commented-dep case in the swift deps test.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments