golangci-lint/test/testdata/gosec_rules_config.go
2022-07-15 15:32:10 +02:00

13 lines
435 B
Go

//golangcitest:args -Egosec
//golangcitest:config_path testdata/configs/gosec.yml
package testdata
import "io/ioutil"
const gosecToken = "62ebc7a03d6ca24dca1258fd4b48462f6fed1545"
const gosecSimple = "62ebc7a03d6ca24dca1258fd4b48462f6fed1545" // ERROR "G101: Potential hardcoded credentials"
func gosecCustom() {
ioutil.WriteFile("filename", []byte("test"), 0755) // ERROR "G306: Expect WriteFile permissions to be 0666 or less"
}