1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

API improvements

This commit is contained in:
mgechev
2018-01-26 20:45:17 -08:00
parent 466e9339e4
commit 5ec3daa762
5 changed files with 22 additions and 19 deletions

View File

@@ -47,7 +47,7 @@ type DisabledInterval struct {
}
// Arguments is type used for the arguments of a rule.
type Arguments = []string
type Arguments = []interface{}
// RuleConfig is type used for the rule configuration.
type RuleConfig struct {
@@ -62,7 +62,7 @@ type RulesConfig = map[string]RuleConfig
type Config struct {
Confidence float64
Severity Severity
Rules RulesConfig
Rules RulesConfig `toml:"rule"`
}
// Rule defines an abstract rule interaface