github.com/golangCi/golangCi-lint@v1.10.1/test/testdata/gas.go (about)

     1  // args: -Egas
     2  package testdata
     3  
     4  import (
     5  	"crypto/md5" // ERROR "G501: Blacklisted import `crypto/md5`: weak cryptographic primitive"
     6  	"log"
     7  )
     8  
     9  func Gas() {
    10  	h := md5.New() // ERROR "G401: Use of weak cryptographic primitive"
    11  	log.Print(h)
    12  }