Skip to content

Commit 0e678cb

Browse files
committed
SA4008: change merge behavior to MergeIfAll
MergeIfAny leads to false positives if the loop condition is a stub in some build configurations. (cherry picked from commit 3d6c86f)
1 parent 1846305 commit 0e678cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staticcheck/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ falsify results.`,
446446
Title: `The variable in the loop condition never changes, are you incrementing the wrong variable?`,
447447
Since: "2017.1",
448448
Severity: lint.SeverityWarning,
449-
MergeIf: lint.MergeIfAny,
449+
MergeIf: lint.MergeIfAll,
450450
},
451451

452452
"SA4009": {

0 commit comments

Comments
 (0)