Versions in this module Expand all Collapse all v2 v2.15.0 Feb 5, 2023 Changes in this version + func NewArchive(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBadTempFile(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBindsToAllNetworkInterfaces(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBlocklistedImportCGI(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBlocklistedImportDES(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBlocklistedImportMD5(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBlocklistedImportRC4(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBlocklistedImportSHA1(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewBlocklistedImports(id string, conf gosec.Config, blocklist map[string]string) (gosec.Rule, []ast.Node) + func NewDecompressionBombCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewDeferredClosing(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewDirectoryTraversal(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewFilePerms(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewHTTPServeWithoutTimeouts(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewHardcodedCredentials(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewImplicitAliasing(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewIntegerOverflowCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewIntermediateTLSCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewMkdirPerms(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewModernTLSCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewNoErrorCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewOldTLSCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewPprofCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewReadFile(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewSQLStrConcat(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewSQLStrFormat(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewSSHHostKey(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewSSRFCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewSlowloris(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewSubproc(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewTemplateCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewUsesWeakCryptography(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewUsingOldMathBig(id string, _ gosec.Config) (gosec.Rule, []ast.Node) + func NewUsingUnsafe(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewWeakKeyStrength(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewWeakRandCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + func NewWritePerms(id string, conf gosec.Config) (gosec.Rule, []ast.Node) + type RuleDefinition struct + Create gosec.RuleBuilder + Description string + ID string + type RuleFilter func(string) bool + func NewRuleFilter(action bool, ruleIDs ...string) RuleFilter + type RuleList struct + RuleSuppressed map[string]bool + Rules map[string]RuleDefinition + func Generate(trackSuppressions bool, filters ...RuleFilter) RuleList + func (rl RuleList) RulesInfo() (map[string]gosec.RuleBuilder, map[string]bool)