Add option to fail on warning when json error found #34542
wyardley
started this conversation in
Suggest an Idea
Replies: 1 comment 2 replies
-
I would be happy for the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
JSON formatting errors, like an extra comma, will throw a warning (both in the issue dashboard and in the Mend dashboard),
However, currently, even with
--strict
,renovate-config-validator
won't fail that, even if the filename is.json
vs.json5
.I don't know if the
--strict
flag should barf on such errors (IMO, that would be ideal, though maybe breaking), but either way, it would be nice to have a way to force the command to exit non-0 on this kind of warning, either with--strict
or with a new flag (--strict-json
?--fail-on-warnings
?).I can (and did) add some basic JSON validation separately that will probably catch most such issues (I used the new fork of jsonlint).
Beta Was this translation helpful? Give feedback.
All reactions