issue.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. CodeOnClickUnknown = "onclick_unknown"
  25. CodeDashboardTypeUnknown = "dashboard_type_unknown"
  26. CodeWebhookAuthTypeUnset = "webhook_auth_type_unset"
  27. CodeWebhookTemplateUnknown = "webhook_template_unknown"
  28. CodeWebhookUnsignedArg = "webhook_unsigned_argument"
  29. )
  30. // Issue is a configuration warning or error surfaced on Diagnostics.
  31. type Issue struct {
  32. Severity string
  33. Code string
  34. Message string
  35. ActionID string
  36. ActionTitle string
  37. ArgumentName string
  38. Source string
  39. ConfigFile string
  40. }