config_duration_no_unit

Diagnostic `nanook::config::duration_no_unit`

Summary

duration `{0}` is missing a unit suffix

Help

append s (seconds), m (minutes), h (hours), or d (days)

Details

When this fires

The duration parser in crates/nanook-core/src/duration.rs consumed digits and reached end-of-input without seeing a unit suffix. Bare numbers aren't valid because nanook wants the unit to be unambiguous. Triggered by any duration-typed field in nanook.toml (rule cooldown, escalate.after, collector interval, etc.) or by opts coerced through Resolver::duration. You'll see it during nanook check or on nanook run startup.

What to check

Append s, m, h, or d. In compound durations, every numeric chunk needs its own unit: 1h30m, not 1h30.

# bad
interval = "30"
# good
interval = "30s"