Repository navigation
import graph: swift-package-manager as Swift's second repo (0 -> 510 imports) (Part of #3798) - #6636
Merged
Merged
Conversation
…resolvable imports) (Part of #3798) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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. Checklist: partial -- Swift now has a measurable n; engine gap on scoped imports is open.
What
Adds
swiftlang/swift-package-manager@80c1fcb89bab(1891 swift files, ~800 scoped imports naming in-repo targets such as Basics, PackageModel, PackageGraph) as Swift's second import-graph repo.swift-argument-parserhas no scoped imports, so Swift had n = 0 after #6631. Corpus line, regenerated baseline (Swift-only diff) and coverage chart; no code change.Swift: 510 resolvable imports, 348 engine edges, precision 85.3%, recall 65.3% (FP 51, FN 177). Candidates rejected: swift-nio (209 scoped imports, all WinSDK/Foundation), swift-collections (1).
Class / Sibling gaps
Class: a language whose import-graph n is too small or zero to quote (#3798). This slice covers Swift. Sibling gaps: Go (engine bug: stdlib linked by file stem, nested go.mod), Perl (use lines in POD counted), and the languages without extractors (Groovy done, Elixir, Erlang, OCaml, Julia, R, Nim, Obj-C++, HCL) -- none has a burned-estate program needing it (scope: sweep).
Remaining slices
import struct|class Mod.Nameresolves by stem (Name.swift) innetwork_risk_sensor.py, but SwiftPM declares types in differently named files (ObservabilityScopeinObservability.swift): 151 of 177 FN are capture-missed. Needs a per-target declaration index or a fallback; plus theBasics/URL.swiftFPs (42, truth sees no import in file; probably extension-based visibility via a bareimport Basics, contract C7) -- bucket and decide.graph_comparison_ledger.jsonneed verdicts from reading the source (not hand-set here).Gates
import_graph_accuracy.py --ci swiftOK;pr_gates.py --fast7/7; test_import_graph_accuracy / graph_ledger / graph_accuracy_plan / graph_coverage_chart 120 passed. No engine change, so no golden bless. CI cost note: the accuracy job now fetches and scans a 1.9k-file repo for swift.Facts checked: baseline regenerated with the full run, diff is Swift only.
🤖 Generated with Claude Code