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:
parent
dec0ecdc47
commit
3540aca153
@ -1,6 +1,6 @@
|
||||
severity = "error"
|
||||
confidence = 1.0
|
||||
[rules]
|
||||
|
||||
[rules.else]
|
||||
arguments = []
|
||||
severity = "error"
|
||||
|
10
lint/rule.go
10
lint/rule.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user