-
Notifications
You must be signed in to change notification settings - Fork 247
Upgrade the DontRepeatTypeInStaticProperties rule. #777
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ import SwiftSyntax | |
/// | ||
/// This rule does not apply to test code, defined as code which: | ||
/// * Contains the line `import XCTest` | ||
/// * The function is marked with `@Test` attribute | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this noise from another PR that was merged in? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This was because I ran |
||
/// | ||
/// Lint: If a force unwrap is used, a lint warning is raised. | ||
@_spi(Rules) | ||
|
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.
Now that I'm getting another look at this, I wonder if we should update this to be
hasSuffix
, since the diagnostic explicitly talks about suffixes.Uh oh!
There was an error while loading. Please reload this page.
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.
Good question... we wouldn't catch plurals (which we don't mention or have tests for), but there are likely false positives with the current logic too.