github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/CheckLoopCondition.go (about) 1 package pkg 2 3 func fn() { 4 for i := 0; i < 10; i++ { 5 for j := 0; j < 10; i++ { // MATCH /variable in loop condition never changes/ 6 } 7 } 8 } 9 10 // M_ATCH:5 /j < 10 is always true for all possible values/