issue.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package configissues
  2. const (
  3. SeverityWarning = "warning"
  4. SeverityError = "error"
  5. CodeActionGroupUnknown = "action_group_unknown"
  6. CodeActionGroupUnenforced = "action_group_unenforced"
  7. CodeArgTypeUnset = "arg_type_unset"
  8. CodeChecklistNoChoices = "checklist_no_choices"
  9. CodeEntityArgumentChoices = "entity_argument_choices"
  10. CodeEnvUnset = "env_unset"
  11. CodeIncludeMissing = "include_missing"
  12. CodeIncludeParse = "include_parse"
  13. CodeConfigDecode = "config_decode"
  14. CodeTemplateParse = "template_parse"
  15. CodeArgDefaultInvalid = "arg_default_invalid"
  16. CodeEntityFile = "entity_file"
  17. CodeEntityEmpty = "entity_empty"
  18. CodeEntityTypeUnconfigured = "entity_type_unconfigured"
  19. CodeCronInvalid = "cron_invalid"
  20. CodeCronEntityBinding = "cron_entity_binding"
  21. CodeWatcherPath = "watcher_path"
  22. CodeAclUnknown = "acl_unknown"
  23. CodeDeprecatedAPICall = "deprecated_api_call"
  24. )
  25. // Issue is a configuration warning or error surfaced on Diagnostics.
  26. type Issue struct {
  27. Severity string
  28. Code string
  29. Message string
  30. ActionID string
  31. ActionTitle string
  32. ArgumentName string
  33. Source string
  34. ConfigFile string
  35. }