mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
dev: rewrite linters Manager (#4419)
This commit is contained in:
parent
26f8088b38
commit
b14d05cdb4
27 changed files with 1749 additions and 1825 deletions
|
@ -122,6 +122,16 @@ type Issues struct {
|
|||
NeedFix bool `mapstructure:"fix"`
|
||||
}
|
||||
|
||||
func (i *Issues) Validate() error {
|
||||
for i, rule := range i.ExcludeRules {
|
||||
if err := rule.Validate(); err != nil {
|
||||
return fmt.Errorf("error in exclude rule #%d: %w", i, err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type ExcludeRule struct {
|
||||
BaseRule `mapstructure:",squash"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue