1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-24 03:47:45 +02:00

Remove useless tags

This commit is contained in:
mgechev 2018-01-26 20:27:52 -08:00
parent dec0ecdc47
commit 3540aca153
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
severity = "error"
confidence = 1.0
[rules]
[rules.else]
arguments = []
severity = "error"

View File

@ -51,8 +51,8 @@ type Arguments = []string
// RuleConfig is type used for the rule configuration.
type RuleConfig struct {
Arguments Arguments `toml:"arguments"`
Severity Severity `toml:"severity"`
Arguments Arguments
Severity Severity
}
// RulesConfig defines the config for all rules.
@ -60,9 +60,9 @@ type RulesConfig = map[string]RuleConfig
// Config defines the config of the linter.
type Config struct {
Confidence float64 `toml:"confidence"`
Severity Severity `toml:"severity"`
Rules RulesConfig `toml:"rules"`
Confidence float64
Severity Severity
Rules RulesConfig
}
// Rule defines an abstract rule interaface