github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/stylecheck/testdata/src/CheckIncDec.disabled/CheckIncDec.go (about)

     1  // Package pkg ...
     2  package pkg
     3  
     4  func fn() {
     5  	var x int
     6  	x--
     7  	x++
     8  	x += 1 // MATCH "should replace x += 1 with x++"
     9  	x -= 1 // MATCH "should replace x -= 1 with x--"
    10  	x /= 1
    11  	x += 2
    12  	x -= 2
    13  }