github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/depguard_ignore_file_rules.go (about)

     1  //golangcitest:args -Edepguard
     2  //golangcitest:config_path testdata/configs/depguard_ignore_file_rules.yml
     3  //golangcitest:expected_exitcode 0
     4  package testdata
     5  
     6  // NOTE - No lint errors because this file is ignored
     7  import (
     8  	"compress/gzip"
     9  	"log"
    10  
    11  	"golang.org/x/tools/go/analysis"
    12  )
    13  
    14  func SpewDebugInfo() {
    15  	log.Println(gzip.BestCompression)
    16  	_ = analysis.Analyzer{}
    17  }