You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.go 973B

1234567891011121314151617181920212223242526272829303132
  1. package lint
  2. // Arguments is type used for the arguments of a rule.
  3. type Arguments = []interface{}
  4. // RuleConfig is type used for the rule configuration.
  5. type RuleConfig struct {
  6. Arguments Arguments
  7. Severity Severity
  8. }
  9. // RulesConfig defines the config for all rules.
  10. type RulesConfig = map[string]RuleConfig
  11. // DirectiveConfig is type used for the linter directive configuration.
  12. type DirectiveConfig struct {
  13. Severity Severity
  14. }
  15. // DirectivesConfig defines the config for all directives.
  16. type DirectivesConfig = map[string]DirectiveConfig
  17. // Config defines the config of the linter.
  18. type Config struct {
  19. IgnoreGeneratedHeader bool `toml:"ignoreGeneratedHeader"`
  20. Confidence float64
  21. Severity Severity
  22. Rules RulesConfig `toml:"rule"`
  23. ErrorCode int `toml:"errorCode"`
  24. WarningCode int `toml:"warningCode"`
  25. Directives DirectivesConfig `toml:"directive"`
  26. }