Would be great to have an API way to lint config files, similar as Travis CI does it:
Are there any plans for this? I assume you have an internal linter for the config files. Maybe this one could be exposed via the API…
You can get config validation in our CLI using
circleci config validate - does that give you what you need?
I am aware of this method. However, I wrote an API client package and for this I would need an explicit api endpoint to support linting
I filed a bug 3 months ago about the CLI validate tool not using the same validation rules/grammar as the actual parser on the CI servers. Useless as a validator as a result; passes things that don’t work on the server.
08:14PM - 04 Sep 19 UTC
The circleci command line tool config verify command doesn't seem to do a very thorough job or actually validate against the...
I’m not the only one to find issues with it:
and a number of others in the Bug Reports section on
discuss.circleci.com (many closed due to lack of comments, not because they were actually fixed).