github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/CheckMathInt.go (about)

     1  package pkg
     2  
     3  import "math"
     4  
     5  func fn(x int) {
     6  	math.Ceil(float64(x))      // MATCH /on a converted integer is pointless/
     7  	math.Floor(float64(x * 2)) // MATCH /on a converted integer is pointless/
     8  }