diff options
Diffstat (limited to 'internal/validate')
| -rw-r--r-- | internal/validate/checks.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go index d835a53..50fd9a5 100644 --- a/internal/validate/checks.go +++ b/internal/validate/checks.go @@ -995,6 +995,14 @@ func validateTechs(s Source) []Issue { func validateGather(prefix string, cfg *behavior.GatherConfig, itemIDs map[string]bool, dropIDs map[string]bool) []Issue { var issues []Issue + if len(cfg.Tools) == 0 { + issues = append(issues, Issue{ + Level: "ERROR", + Type: "config", + Message: fmt.Sprintf("%s: gather must have at least one tool", prefix), + }) + } + if cfg.Bait != "" && !itemIDs[cfg.Bait] { issues = append(issues, Issue{ Level: "ERROR", |
