-
Notifications
You must be signed in to change notification settings - Fork 118
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
Fix salt-lint
violations => implement semantic-release
inc. CI
#129
Comments
@hatifnatt @xenadmin Actually, this formula is in pretty ripe for conversion. Setting That's based on the formula-specific parts of state_top:
base:
'*':
- zabbix.agent.repo
- zabbix.agent.conf
- zabbix.server.repo
- zabbix.server.conf
- zabbix.frontend.repo
- zabbix.frontend.conf
If you're OK with the tabs being changed to spaces, we could have this rolled out pretty soon. |
salt-lint
violationssalt-lint
violations => implement semantic-release
inc. CI
I don't have numbers how widely various OS-es and specific versions are used on servers, personally I'm using mostly Debian and sometimes Ubuntu so I can vote for Debian 10. |
We're still in the process of getting Debian 10 rolled out in our CI setup. There are so many combinations to cater for that we can only make a best effort. To give you an idea of the current situation, have a look at this wiki page:
And that's why I asked, due to your familiarity with this formula. In other formulas where the linters are tripped, we can add them to the ignore list.
That's where I disagree with you. Long lines are nearly always poor for comprehension and maintainability. It's hard for new contributors to get their heads around what is going on. The diffs in GitHub are poor. It indicates that the underlying data structures can be improved. Even simply making better use of Jinja variables can resolve a lot of these problems. In this case, we can also add With that all said, shall we start with what we've got? We can always improve things over time. It actually happens, since we ensure that common updates are propagated to all of the |
I'm only talking about long lines in this formula templates, they can be shortened for sure, but I don't think it's worth it. So I can suggest simply add all templates to ignore list, at least until they will be improved in terms of line length. |
* Automated using myii/ssf-formula#66 * Close saltstack-formulas#129
# [0.21.0](v0.20.5...v0.21.0) (2019-10-12) ### Bug Fixes * **init.sls:** fix `salt-lint` errors ([](ff28364)) * **pillar.example:** fix `yamllint` violations ([](b51907d)) * **repo:** ensure `debconf-utils` is installed for Debian-based OSes ([](4980350)) ### Continuous Integration * **inspec:** add pillar to use for testing the `default` suite ([](581a748)) ### Documentation * **readme:** move to `docs/` directory and apply common structure ([](f0f1563)) ### Features * **semantic-release:** implement for this formula ([](40e78a2)), closes [#129](#129) ### Tests * **inspec:** add tests for packages, config files & services ([](4facac6))
🎉 This issue has been resolved in version 0.21.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Having an initial look at what would be required to get
semantic-release
running for this formula. The whole package involves introducing multiple linters to check the code during the Travis run. The current codebase (at 96b653d) has a large number ofsalt-lint
violations:Even if
semantic-release
takes a while to be introduced to this formula, these violations really need to be resolved.The text was updated successfully, but these errors were encountered: