Skip to content

Commit 665ac6a

Browse files
authored
gomoddirectives: add missing IgnoreForbidden field (#6625)
1 parent 8baaf6d commit 665ac6a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/config/linters_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ type GoModDirectivesSettings struct {
610610
ReplaceLocal bool `mapstructure:"replace-local"`
611611
ReplaceAllowAll bool `mapstructure:"replace-allow-all"`
612612
ExcludeForbidden bool `mapstructure:"exclude-forbidden"`
613+
IgnoreForbidden bool `mapstructure:"ignore-forbidden"`
613614
RetractAllowNoExplanation bool `mapstructure:"retract-allow-no-explanation"`
614615
ToolchainForbidden bool `mapstructure:"toolchain-forbidden"`
615616
ToolchainPattern string `mapstructure:"toolchain-pattern"`

pkg/golinters/gomoddirectives/gomoddirectives.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func New(settings *config.GoModDirectivesSettings) *goanalysis.Linter {
2727
opts.ReplaceAllowAll = settings.ReplaceAllowAll
2828
opts.RetractAllowNoExplanation = settings.RetractAllowNoExplanation
2929
opts.ExcludeForbidden = settings.ExcludeForbidden
30+
opts.IgnoreForbidden = settings.IgnoreForbidden
3031
opts.ToolchainForbidden = settings.ToolchainForbidden
3132
opts.ToolForbidden = settings.ToolForbidden
3233
opts.GoDebugForbidden = settings.GoDebugForbidden

0 commit comments

Comments
 (0)