require-netlify-build-command-non-empty
Require Netlify build.command values to be present and non-empty.
Targeted pattern scopeâ
command = ...assignments innetlify.toml.
What this rule reportsâ
This rule reports missing or empty build command values.
Why this rule existsâ
An empty command assignment can pass superficial checks while silently breaking build expectations.
â Incorrectâ
[build]
command = ""
publish = "dist"
â Correctâ
[build]
command = "npm run build"
publish = "dist"
When not to use itâ
Disable this rule if build command selection is intentionally managed outside
netlify.toml.
Rule catalog ID: R100