HEPCloud / decisionengine

HEPCloud Decision Engine framework
Apache License 2.0
6 stars 26 forks source link

Need "lint" functionality for jsonnet / lib sonnet config files #531

Open StevenCTimm opened 3 years ago

StevenCTimm commented 3 years ago

Need a syntax checker for jsonnet /libsonnet configuration files. Ideally available both in text editors and as a hook when said files are committed to git.

StevenCTimm commented 3 years ago

Pat mentions that jsonnetfmt utility will alert on outright syntax errors. It's available in EPEL as part of the "Jsonnet" rpm. Works from the command line but not in vim or emacs. How I hook that into the gitlab config repo is another thing altogether. And it doesn't cover the cases of wrong parameter names, etc.