diff options
Diffstat (limited to 'internal/validate/checks.go')
| -rw-r--r-- | internal/validate/checks.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go index d3fa111..2030225 100644 --- a/internal/validate/checks.go +++ b/internal/validate/checks.go @@ -1624,6 +1624,17 @@ func validateGather(prefix string, cfg *behavior.GatherConfig, itemIDs map[strin prefix, label, len(cfg.Tools)), }) } + if d.Weight <= 0 { + label := d.ItemID + if label == "" { + label = "<table:" + d.Table + ">" + } + issues = append(issues, Issue{ + Level: "WARN", + Type: "semantic", + Message: fmt.Sprintf("%s: drop %q has weight %d; it can never be selected", prefix, label, d.Weight), + }) + } } return issues |
