Open myii opened 3 years ago
Thanks @myii for your feature request!
This might automatically be detected by allowing yamllint to run on the states stripped of any Jinja (#240).
Thanks @myii for your feature request!
This might automatically be detected by allowing yamllint to run on the states stripped of any Jinja (#240).
@roaldnefs Yes, that definitely will work. #240 would be a fantastic addition to salt-lint
.
Thanks for the prompt reply!
Is your feature request related to a problem? Please describe.
salt-lint
should catch poorly indented states.https://github.com/saltstack-formulas/haproxy-formula/blob/958c2d9249b276d1844605091608e02dc3601512/haproxy/config.sls#L4-L19
Describe the solution you'd like
Run
salt-lint
on the above file and it will pass.salt-lint
has been enabled for this repository for a long time now, here's the last run:https://gitlab.com/saltstack-formulas/haproxy-formula/-/jobs/914490845#L171
Examining haproxy/config.sls of type state
should show a failure.