-
Notifications
You must be signed in to change notification settings - Fork 243
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
Remove severity #943
Remove severity #943
Conversation
d5307db
to
6b359d8
Compare
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.
Thank you, Bernd. Looks good to me overall, just have a few thoughts inline. I would also like to hear @allevato’s opinion before merging this.
382c324
to
dec91d5
Compare
476b317
to
d27a15d
Compare
I think I addressed all your comments. Can you please check again? |
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! This is a lot cleaner.
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.
Looks like these need to be added to api-breakages.txt
:
7 breaking changes detected in SwiftFormat:
💔 API breakage: func Rule.diagnose(_:on:severity:anchor:notes:) has parameter 2 type change from SwiftFormat.Finding.Severity? to SwiftFormat.FindingAnchor
💔 API breakage: func Rule.diagnose(_:on:severity:anchor:notes:) has parameter 3 type change from SwiftFormat.FindingAnchor to [SwiftFormat.Finding.Note]
💔 API breakage: enum Finding.Severity has been removed
💔 API breakage: var Finding.severity has been removed
💔 API breakage: var FindingCategorizing.defaultSeverity has been removed
💔 API breakage: var FindingCategorizing.defaultSeverity has been removed
💔 API breakage: func Rule.diagnose(_:on:severity:anchor:notes:) has been renamed to func diagnose(_:on:anchor:notes:)
Instead of making the severity configurable, this patch removes severity all together and treats every finding as an error. Issue: swiftlang#879
I updated the api-breakages.txt file. Can you please approve the workflow again? |
Instead of making the severity configurable,
this patch removes severity all together and treats every finding as an error.
Issue: #879