mirror of
https://github.com/securego/gosec.git
synced 2025-11-29 22:37:59 +02:00
Add support for #excluding specific rules
This commit is contained in:
@@ -24,12 +24,17 @@ import (
|
||||
)
|
||||
|
||||
type insecureConfigTLS struct {
|
||||
gas.MetaData
|
||||
MinVersion int16
|
||||
MaxVersion int16
|
||||
requiredType string
|
||||
goodCiphers []string
|
||||
}
|
||||
|
||||
func (t *insecureConfigTLS) ID() string {
|
||||
return t.MetaData.ID
|
||||
}
|
||||
|
||||
func stringInSlice(a string, list []string) bool {
|
||||
for _, b := range list {
|
||||
if b == a {
|
||||
|
||||
Reference in New Issue
Block a user