-
-
Notifications
You must be signed in to change notification settings - Fork 50
Base data race safety reporting on latest Swift version #3797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Consider updating method name to reflect implementation change
You've changed the filtering condition from using Swift 6.0 specifically to using the latest Swift version, which aligns with the PR title about basing data race safety reporting on the latest Swift version. However, the method name
swift6Readiness
still suggests a specific tie to Swift 6.Consider one of the following approaches:
swiftDataRaceSafetyReadiness
to better reflect its purpose🏁 Script executed:
Length of output: 17534
Align naming of Swift6Readiness with its “latest Swift” implementation
The helper and its type are still named for “Swift 6,” even though the code now filters by
.latest
. To avoid confusion (and future drift once Swift 7+ becomes “latest”), please:Swift6Readiness
type (and its alias in API+PackageController+BuildInfo.swift) to something likeSwiftDataRaceSafetyReadiness
.swift6Readiness(builds:)
inSources/App/Controllers/API/API+PackageController+BuildInfo.swift
(and update its call sites inAPI+PackageController+GetRoute.swift
).swift6Readiness
property in both theBuildInfo
response model and theGetRoute.Model
.Swift6Readiness
/swift6Readiness
.If you’d rather keep the existing names for backwards compatibility, add a clear doc comment on
Swift6Readiness
(and theswift6Readiness(...)
method) explaining that it actually computes data-race-safety readiness for the latest Swift version.