1
0
mirror of https://github.com/mgechev/revive.git synced 2025-03-19 21:07:46 +02:00

Add linter config

This commit is contained in:
mgechev 2018-01-25 12:33:46 -08:00
parent faa19bd4c1
commit a53c18f4e7

View File

@ -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