-
Notifications
You must be signed in to change notification settings - Fork 247
OrderedImports should create separate group for @_implementationOnly … #1013
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
Conversation
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.
We should have the swift-syntax PR ready to be merged before this one is merged and then merge this PR and the swift-syntax PR at the same time. Edit: Actually, the formatting of swift-syntax is checked against the latest released Swift toolchain, so swift-syntax doesn’t need to be updated. So, we should be good to merge this one. |
api-breakages.txt
Outdated
@@ -18,3 +18,4 @@ API breakage: func Configuration.MultilineStringReflowBehavior.hash(into:) has b | |||
API breakage: func Configuration.MultilineStringReflowBehavior.encode(to:) has been removed | |||
API breakage: var Configuration.MultilineStringReflowBehavior.hashValue has been removed | |||
API breakage: constructor Configuration.MultilineStringReflowBehavior.init(from:) has been removed | |||
API breakage: enum LineType.implementationOnlyImport has been added as a new enum case |
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.
This check is still failing; the message needs to be copied verbatim from the error in the CI log:
API breakage: enumelement LineType.implementationOnlyImport has been added as a new enum case
(enumelement
, not enum
)
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.
Thanks for adding this!
The OrderedImports rule should create a separate import grouping for
@_implementationOnly
imports to go with the current@testable
group. The code is refactored a bit to enable a future change for public/internal/private import grouping, and to harden again other import attributes like @preconcurrency.Discussed in #703.