Skip to content

Commit

Permalink
celanup config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 1, 2023
1 parent bbf4d15 commit 01996e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var allRules = append([]lint.Rule{
&rule.ConstantLogicalExprRule{},
&rule.BoolLiteralRule{},
&rule.ImportsBlacklistRule{},
&rule.ImportsBlocklistRule{},
&rule.ImportsBlocklistRule{},
&rule.FunctionResultsLimitRule{},
&rule.MaxPublicStructsRule{},
&rule.RangeValInClosureRule{},
Expand Down Expand Up @@ -154,8 +154,7 @@ func parseConfig(path string, config *lint.Config) error {
_, err = toml.Decode(string(file), config)
if err != nil {
return fmt.Errorf("cannot parse the config file: %v", err)
}

}
for k, r := range config.Rules {
err := r.Initialize()
if err != nil {
Expand Down

0 comments on commit 01996e1

Please sign in to comment.