mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
24 lines
664 B
Go
24 lines
664 B
Go
|
package lint
|
||
|
|
||
|
// Arguments is type used for the arguments of a rule.
|
||
|
type Arguments = []interface{}
|
||
|
|
||
|
// RuleConfig is type used for the rule configuration.
|
||
|
type RuleConfig struct {
|
||
|
Arguments Arguments
|
||
|
Severity Severity
|
||
|
}
|
||
|
|
||
|
// RulesConfig defines the config for all rules.
|
||
|
type RulesConfig = map[string]RuleConfig
|
||
|
|
||
|
// Config defines the config of the linter.
|
||
|
type Config struct {
|
||
|
IgnoreGeneratedHeader bool `toml:"ignoreGeneratedHeader"`
|
||
|
Confidence float64
|
||
|
Severity Severity
|
||
|
Rules RulesConfig `toml:"rule"`
|
||
|
ErrorCode int `toml:"errorCode"`
|
||
|
WarningCode int `toml:"warningCode"`
|
||
|
}
|