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:
parent
faa19bd4c1
commit
a53c18f4e7
@ -55,9 +55,16 @@ type RuleConfig struct {
|
|||||||
Severity Severity
|
Severity Severity
|
||||||
}
|
}
|
||||||
|
|
||||||
// RulesConfig defiles the config for all rules.
|
// RulesConfig defines the config for all rules.
|
||||||
type RulesConfig = map[string]RuleConfig
|
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
|
// Rule defines an abstract rule interaface
|
||||||
type Rule interface {
|
type Rule interface {
|
||||||
Name() string
|
Name() string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user