Skip to content

Commit

Permalink
remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 1, 2023
1 parent 97795eb commit 79f1587
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ var allRules = append([]lint.Rule{
&rule.EnforceSliceStyleRule{},
}, defaultRules...)

var deprecatedRules = []lint.Rule{

&rule.ImportsBlacklistRule{},
}

var allFormatters = []lint.Formatter{
&formatter.Stylish{},
&formatter.Friendly{},
Expand Down Expand Up @@ -158,11 +153,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 _, r := range deprecatedRules {
delete(config.Rules, r.Name())
}
}

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

0 comments on commit 79f1587

Please sign in to comment.