mirror of
https://github.com/mgechev/revive.git
synced 2025-07-13 01:00:17 +02:00
Add linter config
This commit is contained in:
@ -55,9 +55,16 @@ type RuleConfig struct {
|
||||
Severity Severity
|
||||
}
|
||||
|
||||
// RulesConfig defiles the config for all rules.
|
||||
// RulesConfig defines the config for all rules.
|
||||
type RulesConfig = map[string]RuleConfig
|
||||
|
||||
// Config defines the config of the linter.
|
||||
type Config struct {
|
||||
Confidence float64
|
||||
Severity Severity
|
||||
Rules RulesConfig
|
||||
}
|
||||
|
||||
// Rule defines an abstract rule interaface
|
||||
type Rule interface {
|
||||
Name() string
|
||||
|
Reference in New Issue
Block a user