mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
API improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user