renovate-config-validator checks a config without running Renovate. A misspelled option name is an error (exit code 1), an outdated option only a warning with a migration suggestion.
Symptom
renovate-config-validator 2>&1 | grep -E '^ ?[A-Z]+:|^ +[-+] |"message"'
echo "exit=${PIPESTATUS[0]}"
INFO: Validating renovate.json5
WARN: Config migration necessary
ERROR: Found errors in configuration
"message": "Invalid configuration option: prHourlyLimt"
exit=1
An error and a migration warning in one run – only the error sets the exit code.
Diagnosis
The line in the config the validator means.
prHourlyLimt: 4,
Causes
TippfehlerUnknown option name
prHourlyLimt instead of prHourlyLimit: Renovate does not know the option and reports an error. An outdated option like matchPackagePatterns, by contrast, is only a warning with a migration suggestion.
--strictMigrations as errors in CI
With --strict the validator also turns a necessary migration into an error – exactly right for CI.
Fix
sed -i.bak 's/prHourlyLimt/prHourlyLimit/' renovate.json5 && rm renovate.json5.bak renovate-config-validator >/dev/null 2>&1; echo "normal: exit=$?" renovate-config-validator --strict >/dev/null 2>&1; echo "--strict: exit=$?" normal: exit=0 --strict: exit=1
Don't: Only running the validator locally without arguments. If you pass file names, it checks them as global config; repo configs need --no-global.
Renovate hands-on, day 2: configuration, file locations, presets, the validator and dry runs.
Go to day 2 →
FAQ
Does the validator also find misspelled presets?
No. It does not resolve presets; config:recomended only shows up in a real run.
What happens with a broken config in the repository?
Renovate opens an issue “Action Required: Fix Renovate Configuration” and creates no PRs until the config is fixed.