github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/gosec_global_option.go (about) 1 //golangcitest:args -Egosec 2 //golangcitest:config_path testdata/configs/gosec_global_option.yml 3 package testdata 4 5 import ( 6 "crypto/md5" // want "G501: Blocklisted import crypto/md5: weak cryptographic primitive" 7 "log" 8 ) 9 10 func Gosec() { 11 // #nosec G401 12 h := md5.New() // want "G401: Use of weak cryptographic primitive" 13 log.Print(h) 14 }