-
Notifications
You must be signed in to change notification settings - Fork 895
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
Lint YAML files (mainly semantic conventions). #1814
Conversation
run: make install-yamllint | ||
|
||
- name: run yamllint | ||
run: yamllint . -f github |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not using make
here because of the -f github
special option.
Should it be mentioned in CONTRIBUTING.md? Maybe tools that can be used to auto-format? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to update contributing.md as well
I was looking for such a tool but couldn't quickly find one, at least not one that worked on Windows where I tried. |
Good point, it would also be helpful to have a Make target that executes all linters. But maybe in a follow-up PR? Also we should consider making a few more checks required, at least the old semantic convention check. I think this must be done by an admin in the repo settings. |
@arminru since you have magic power to upgrade this branch, please upgrade it then merge the PR 🗡️ |
Merged and also added |
Co-authored-by: Armin Ruech <[email protected]>
Run yamllint (https://github.com/adrienverge/yamllint) over all yaml files.