-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reduce indentation for AddConstantRule.configure
- Loading branch information
1 parent
3378f70
commit 16754b0
Showing
3 changed files
with
76 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package fixtures | ||
|
||
func foo() { | ||
a = "ignore" | ||
b = "ignore" | ||
|
||
c = "match" | ||
d = "match" | ||
e = "match" // MATCH /string literal "match" appears, at least, 3 times, create a named constant for it/ | ||
|
||
f = 5 // MATCH /avoid magic numbers like '5', create a named constant for it/ | ||
} |