Skip to content
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

Fix a bunch of FIXMEs around linter findings. #597

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

allevato
Copy link
Member

  • Whitespace linter: Fix improper pluralization of "add 1 line breaks".
  • DoNotUseSemicolons: Only show the part of the message about moving the next statement to a new line if a statement actually follows the semicolon on the same line.
  • DontRepeatTypeInStaticProperties: Place the finding on the identifier, not at the start of the decl.
  • FullyIndirectEnum: Move the finding to the enum keyword and add notes to each indirect keyword that should be removed.
  • GroupNumericLiterals: Clean up the finding message and include the numeric base of the literal.
  • NoAccessLevelOnExtensionDeclaration: Add notes for each extension declaration that needs to have the access modifier added to it.
  • NoCasesWithOnlyFallthrough: Put findings at the right locations.
  • NoEmptyTrailingClosureParentheses: Place the finding on the parentheses themselves.
  • NoParensAroundConditions: Place the finding on the parentheses themselves.
  • TypeNamesShouldBeCapitalized: Place the finding on the name instead of the declaration and clean up the message to make it more consistent with other rules.
  • UseEarlyExits: Put findings at the right locations.
  • UseTripleSlashForDocumentationComments: Place the finding on the comment, not on the declaration.

- Whitespace linter: Fix improper pluralization of "add 1 line breaks".
- `DoNotUseSemicolons`: Only show the part of the message about moving
  the next statement to a new line if a statement actually follows the
  semicolon on the same line.
- `DontRepeatTypeInStaticProperties`: Place the finding on the
  identifier, not at the start of the decl.
- `FullyIndirectEnum`: Move the finding to the `enum` keyword and add
  notes to each `indirect` keyword that should be removed.
- `GroupNumericLiterals`: Clean up the finding message and include the
  numeric base of the literal.
- `NoAccessLevelOnExtensionDeclaration`: Add notes for each extension
  declaration that needs to have the access modifier added to it.
- `NoCasesWithOnlyFallthrough`: Put findings at the right locations.
- `NoEmptyTrailingClosureParentheses`: Place the finding on the
  parentheses themselves.
- `NoParensAroundConditions`: Place the finding on the parentheses
  themselves.
- `TypeNamesShouldBeCapitalized`: Place the finding on the name
  instead of the declaration and clean up the message to make it
  more consistent with other rules.
- `UseEarlyExits`: Put findings at the right locations.
- `UseTripleSlashForDocumentationComments`: Place the finding on the
  comment, not on the declaration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant