Skip to content

Commit

Permalink
Enable redundantStaticSelf by default
Browse files Browse the repository at this point in the history
  • Loading branch information
calda authored and nicklockwood committed May 29, 2023
1 parent 5d83bd1 commit 4027dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
* [redundantRawValues](#redundantRawValues)
* [redundantReturn](#redundantReturn)
* [redundantSelf](#redundantSelf)
* [redundantStaticSelf](#redundantStaticSelf)
* [redundantType](#redundantType)
* [redundantVoidReturnType](#redundantVoidReturnType)
* [semicolons](#semicolons)
Expand Down Expand Up @@ -90,7 +91,6 @@
* [isEmpty](#isEmpty)
* [markTypes](#markTypes)
* [organizeDeclarations](#organizeDeclarations)
* [redundantStaticSelf](#redundantStaticSelf)
* [sortTypealiases](#sortTypealiases)
* [sortedSwitchCases](#sortedSwitchCases)
* [wrapConditionalBodies](#wrapConditionalBodies)
Expand Down
3 changes: 1 addition & 2 deletions Sources/Rules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3235,8 +3235,7 @@ public struct _FormatRules {

/// Remove redundant Self keyword
public let redundantStaticSelf = FormatRule(
help: "Remove explicit `Self` where applicable.",
disabledByDefault: true
help: "Remove explicit `Self` where applicable."
) { formatter in

var endIndex: Int?
Expand Down

0 comments on commit 4027dd8

Please sign in to comment.