fix: exclude SwiftPM .build/.swiftpm from scanning (0.7.1) - #29
Merged
Conversation
…gnore The rule engine scanned SwiftPM's `.build/` (and `.swiftpm/`) as product code, so after a local `swift build`, `meta check`/`meta arch` reported false findings on generated Swift (e.g. a bogus oversized-files watch on `.build/.../runner.swift`). - grep.rs: add `.build` and `.swiftpm` to EXCLUDED_DIRS. - scaffold.rs: the generated `.gitignore` is now profile-aware — swift repos ignore `.build/` and `.swiftpm/` out of the box (init/upgrade merge them in). Tests: `.build`/`.swiftpm` exclusion in collect_files; swift `.gitignore` contents. Bumps to 0.7.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Fast-follow to the 0.7.0 swift profile.
Problem
The rule engine's
EXCLUDED_DIRScoveredtarget/node_modules/buildbut not SwiftPM's.build/(or.swiftpm/). After a localswift build,meta check/meta archscanned generated Swift under.build/as product code — e.g. a bogus oversized-files WATCH on.build/.../runner.swift. Local-only (CI checks out fresh / runs standards before building), but a real correctness gap: undercheck --stricta generated file with a flagged pattern could falsely fail.Fix
grep.rs: add.buildand.swiftpmtoEXCLUDED_DIRS.scaffold.rs: the generated.gitignoreis now profile-aware — swift repos ignore.build/and.swiftpm/out of the box (init/upgrademerge them in).Verification
.build/.swiftpmexclusion incollect_files; swift.gitignorecontents. 129 lib + 8 integration + 6 stats pass.meta archon a Swift package with a populated.build/went from1 watch(false) →0 watch.Bumps to 0.7.1.
🤖 Generated with Claude Code