We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0591654 commit bdae2e5Copy full SHA for bdae2e5
pkg/lint/lintersdb/validator.go
@@ -43,7 +43,7 @@ func (v Validator) Validate(cfg *config.Config) error {
43
}
44
45
func (v Validator) validateLintersNames(cfg *config.Linters) error {
46
- allNames := append([]string{}, cfg.Enable...)
+ allNames := cfg.Enable
47
allNames = append(allNames, cfg.Disable...)
48
49
var unknownNames []string
@@ -91,7 +91,7 @@ func (v Validator) alternativeNamesDeprecation(cfg *config.Linters) error {
91
92
93
94
- names := append([]string{}, cfg.Enable...)
+ names := cfg.Enable
95
names = append(names, cfg.Disable...)
96
97
for _, name := range names {
0 commit comments