-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use yamllint
config to prevent empty-values
& use new yaml-files
setting
#164
Comments
So I've run some tests across all of the relevant formulas using myii/ssf-formula#27. As you can see from that page, 8 out of the nearly 40 formulas have issues. The rest pass the |
Hello.
I agree. I'm really happy to see how the formulas improve. Regards. |
Thanks, @baby-gnu. I'll just wait to see if there any other responses before taking the next step (if applicable). |
OK for me |
@daks Excellent, that's good enough for me. I'll get something rolled out soon, the only thing that will delay me a little is getting the fixes included as well. |
* Found while working on #27, i.e.: - saltstack-formulas/template-formula#164
@myii it could the occasion to improve documentation about accepted values (bool, int, string, array, hast, null) |
@n-rodriguez Do you mean from a YAML angle or across the SaltStack Formulas organisation? At the current time, my opinion is that as long as it's valid YAML, that's fine. There are cases where Generally, there's more good news. The latest release of yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
- '*.example'
- 'test/**/*.sls' So I'm planning to include this at the same time. |
great! |
yamllint
config to prevent empty-values
yamllint
config to prevent empty-values
& use new yaml-files
setting
The PRs have all been created. A few have been marked as |
* Automated using myii/ssf-formula#27 * Close saltstack-formulas#164
## [3.3.1](v3.3.0...v3.3.1) (2019-09-23) ### Bug Fixes * **subcomponent:** clean referencing wrong sls ([394808e](394808e)) ### Continuous Integration * use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround ([330b0cb](330b0cb)) * **kitchen:** change `log_level` to `debug` instead of `info` ([1b929ff](1b929ff)) * **platform:** add `arch-base-latest` ([042e8e2](042e8e2)) * **yamllint:** add rule `empty-values` & use new `yaml-files` setting ([70ed7e2](70ed7e2)), closes [#164](#164) ### Documentation * **contributing:** add recent `semantic-release` formulas ([7f36ae9](7f36ae9))
🎉 This issue has been resolved in version 3.3.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This has come up before and there was a reminder of it here:
Having empty values in
pillar.example
(or any of the YAML files) is never a good idea, leading to confusion and rendering errors. Values should be set explicitly, with it being easy to set null if that's what's really required.With
yamllint
now active in our repos, this can easily be enforced from its configuration file:Propagating this is straightforward using the
ssf-formula
.The text was updated successfully, but these errors were encountered: