Yamllint: Difference between revisions
Created page with "Use the online validator https://www.yamllint.com/ or have one in your local tools to ensure that your Yaml is correct. Category:Parsing Category:YAML Category:..." |
No edit summary |
||
| Line 1: | Line 1: | ||
Use | Use an online validator like https://www.yamllint.com/ or https://jsonformatter.org/yaml-validator | ||
Of course, you should have one in your local tools and CI pipeline to ensure that your [[YAML]] is always correct. | |||
You can't just use "one" solution though. The leading GPL linter is based on Python, so depending on your code repo, you may instead want to use a JavaScript or PHP implementation. Thus, tools like [[wp:Grunt (software)]] may be used to automate JSHint linting in [[JavaScript]] projects<ref>https://www.codereadability.com/jshint-with-grunt/</ref>. | |||
* https://github.com/adrienverge/yamllint | |||
* https://yamllint.readthedocs.io/en/stable/ | |||
{{References}} | |||
[[Category:Parsing]] | [[Category:Parsing]] | ||
| Line 6: | Line 15: | ||
[[Category:Tools]] | [[Category:Tools]] | ||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:Continuous Integration]] | |||