github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/decorder.go (about)

     1  //golangcitest:args -Edecorder
     2  //golangcitest:config_path testdata/configs/decorder.yml
     3  package testdata
     4  
     5  import "math"
     6  
     7  const (
     8  	decoc = math.MaxInt64
     9  	decod = 1
    10  )
    11  
    12  var decoa = 1
    13  var decob = 1 // want "multiple \"var\" declarations are not allowed; use parentheses instead"
    14  
    15  type decoe int // want "type must not be placed after const"
    16  
    17  func decof() {
    18  	const decog = 1
    19  }
    20  
    21  func init() {} // want "init func must be the first function in file"