mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
build(deps): bump github.com/securego/gosec/v2 from 2.8.1 to 2.9.1 (#2299)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
680f3e6c8e
commit
6edca924d3
6 changed files with 16 additions and 13 deletions
|
@ -294,9 +294,10 @@ type GoModGuardSettings struct {
|
|||
}
|
||||
|
||||
type GoSecSettings struct {
|
||||
Includes []string
|
||||
Excludes []string
|
||||
Config map[string]interface{} `mapstructure:"config"`
|
||||
Includes []string
|
||||
Excludes []string
|
||||
ExcludeGenerated bool `mapstructure:"exclude-generated"`
|
||||
Config map[string]interface{} `mapstructure:"config"`
|
||||
}
|
||||
|
||||
type GovetSettings struct {
|
||||
|
|
|
@ -54,7 +54,7 @@ func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter {
|
|||
nil,
|
||||
).WithContextSetter(func(lintCtx *linter.Context) {
|
||||
analyzer.Run = func(pass *analysis.Pass) (interface{}, error) {
|
||||
gosecAnalyzer := gosec.NewAnalyzer(gasConfig, true, logger)
|
||||
gosecAnalyzer := gosec.NewAnalyzer(gasConfig, true, settings.ExcludeGenerated, logger)
|
||||
gosecAnalyzer.LoadRules(ruleDefinitions.Builders())
|
||||
|
||||
pkg := &packages.Package{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue