@@ -19,7 +19,7 @@ func GetLinter(conf *lint.Config) (*lint.Linter, error) {
19
19
func GetFormatter (conf * lint.Config ) (lint.Formatter , error ) {
20
20
format , ok := globalRegistry .GetFormatter (conf .Formatter )
21
21
if ! ok {
22
- return nil , fmt .Errorf ("Config Error : '%s' formatter not found" , conf .Formatter )
22
+ return nil , fmt .Errorf ("config error : '%s' formatter not found" , conf .Formatter )
23
23
}
24
24
return format , nil
25
25
}
@@ -33,7 +33,7 @@ func GetEnabledRules(conf *lint.Config) ([]lint.Rule, error) {
33
33
// before checking if rule is enabled
34
34
r , ok := globalRegistry .GetRule (ruleName )
35
35
if ! ok {
36
- return nil , fmt .Errorf ("Config Error : '%s' rule not found" , ruleName )
36
+ return nil , fmt .Errorf ("config error : '%s' rule not found" , ruleName )
37
37
}
38
38
39
39
if ! ruleConfig .Enabled {
@@ -42,7 +42,7 @@ func GetEnabledRules(conf *lint.Config) ([]lint.Rule, error) {
42
42
43
43
err := r .Apply (ruleConfig .Argument , ruleConfig .Flags )
44
44
if err != nil {
45
- return nil , fmt .Errorf ("Config Error : %v" , err )
45
+ return nil , fmt .Errorf ("config error : %v" , err )
46
46
}
47
47
enabledRules = append (enabledRules , r )
48
48
}
0 commit comments