We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b960a commit ebd90a9Copy full SHA for ebd90a9
config/config.go
@@ -103,10 +103,15 @@ func Validate(conf *lint.Config) error {
103
}
104
105
// Check if rule is registered
106
- _, ok := globalRegistry.GetRule(ruleName)
+ ruleData, ok := globalRegistry.GetRule(ruleName)
107
if !ok {
108
return fmt.Errorf("unknown rule '%s'", ruleName)
109
110
+
111
+ err := ruleData.Apply(r.Argument, r.Flags)
112
+ if err != nil {
113
+ return err
114
+ }
115
116
117
return nil
0 commit comments