
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests for local mode of goimports and do refactoring of tests.
13 lines
246 B
Go
13 lines
246 B
Go
//args: -Egosec
|
|
package testdata
|
|
|
|
import (
|
|
"crypto/md5" // ERROR "G501: Blacklisted import `crypto/md5`: weak cryptographic primitive"
|
|
"log"
|
|
)
|
|
|
|
func Gosec() {
|
|
h := md5.New() // ERROR "G401: Use of weak cryptographic primitive"
|
|
log.Print(h)
|
|
}
|