Repository navigation
Import graph: Swift rule (C7) and swift-argument-parser corpus entry (Part of #3798) - #6486
Merged
Merged
Conversation
…eclared type, C7) and swift-argument-parser corpus entry (Part of #3798) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 15:36
squid-protocol
enabled auto-merge (squash)
October 24, 2026 15:41
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Owner
Author
|
No description provided. |
Owner
Author
|
No description provided. |
Owner
Author
|
No description provided. |
1 similar comment
Owner
Author
|
No description provided. |
This was referenced Oct 24, 2026
Merged
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.
Part of #3798, slice 3 (Swift), copying C# PR #6417.
What
swift_importsintests/tools/import_graph_accuracy.py: import contract C7.import Mod(also@testable,@_exported,public import) names a SwiftPM target, so no edge.import struct|class|enum|protocol|typealias|func|var|let Mod.Nameresolves to the files of Mod declaring Name (nested name falls back to owner; an extension counts;#ifbodies are read). Targets and directories come fromPackage.swiftby bounded pattern (path:elseSources|Tests|Plugins/<Name>).WinSDK.*, external), 22 engine edges, 22 FP, 0 FN. Reported, not gated (MIN_GATED_IMPORTS). Alamofire has no scoped imports either, so no second repo was chased.test_swift_resolves_by_target_and_declared_type_never_by_pathcovers every scoped keyword, module forms, nested fallback, name-vs-file mismatch, custompath:,#if, partial type + extension, external module.last_reconciled_atbumps on existing shapes were reverted so the diff is additions only.Finding for the owner
The engine edges
import FoundationtoSources/ArgumentParser/Utilities/Foundation.swift(a same-named file) in 22 places. That is the FP shape, as with C#LinqBridge; left unvalidated in the ledger, not tuned.Class / Sibling gaps
Class: languages with no import-graph accuracy rule in
import_graph_accuracy.py. Swift is covered here (plain module import, all eight scoped keywords, attribute/visibility forms, nested type, custom target path). Sibling gaps: none for Swift. Remaining slices: Groovy, Elixir, Erlang, OCaml, Julia, R, Nim, Fortran, Obj-C++, PowerShell, HCL, and second repos for Go and Perl (blocked on #6403), Shell, Rust, JavaScript.Gates
import_graph_accuracy.py --ciOK (22 languages);pr_gates --fast7/7;--ratchets9/9 (0 skipped);audit_check.pyclear; touched tests plustest_source_reads,test_generated_branchpass, and plainpytestfrom/tmppasses. No engine code changed, so no golden bless. Thetranslatorextra was not installed, so det tests were not exercised.🤖 Generated with Claude Code