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

     1  // Package pkg ...
     2  package pkg
     3  
     4  import _ "fmt"
     5  
     6  import _ "fmt"
     7  import _ "fmt"
     8  import _ "fmt"
     9  
    10  import _ "fmt"
    11  import "strings"
    12  import _ "fmt"
    13  
    14  // This is fine
    15  import _ "fmt"
    16  
    17  // This is fine
    18  import _ "fmt"
    19  import _ "fmt"
    20  import _ "fmt"
    21  
    22  // This is fine
    23  import _ "fmt"
    24  import "bytes"
    25  import _ "fmt"
    26  
    27  import _ "fmt" // This is fine
    28  
    29  // This is not fine
    30  import (
    31  	_ "fmt"
    32  )
    33  
    34  import (
    35  	_ "fmt"
    36  	"strconv"
    37  	// This is fine
    38  	_ "fmt"
    39  )
    40  
    41  var _ = strings.NewReader
    42  var _ = bytes.NewBuffer
    43  var _ = strconv.IntSize
    44  
    45  // MATCH:4 "blank import"
    46  // MATCH:6 "blank import"
    47  // MATCH:10 "blank import"
    48  // MATCH:12 "blank import"
    49  // MATCH:25 "blank import"
    50  // MATCH:31 "blank import"
    51  // MATCH:35 "blank import"