
1. Rename in a backward compatible way 2. Remove gosec default exclude list because gosec is already disabled by default. 3. Warn about unmatched linter names in //nolint directives 4. Process linter names in //nolint directives in upper case 5. Disable gosec for golangci-lint in .golangci.yml
13 lines
247 B
Go
13 lines
247 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)
|
|
}
|