File tree Expand file tree Collapse file tree
golinters/gomoddirectives Expand file tree Collapse file tree Original file line number Diff line number Diff 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"`
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments