issue.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. )
  24. // Issue is a configuration warning or error surfaced on Diagnostics.
  25. type Issue struct {
  26. Severity string
  27. Code string
  28. Message string
  29. ActionID string
  30. ActionTitle string
  31. ArgumentName string
  32. Source string
  33. ConfigFile string
  34. }