-
Notifications
You must be signed in to change notification settings - Fork 192
Conversation
Hii tanzu-framework team I want to know that are there any files which we want to ignore to pass from yaml linter so that i can ignore them and correct the error and warning in other files. |
After looking at #1399, I wonder if this should folded into the lint target as well? We already have quite a handful of Lint-y checks as it is. cc @stmcginnis |
I don't think I have a strong opinion about which way we go, but I do think we should either choose to have each type of linting we want to perform be separate, discrete GitHub Action checks, or we should have them all be a part of the one lint target. It's a bit confusing to have the mix of both. A pro of having multiple actions run is it may be a little more immediately clear what is failing when one of them does. But it also seems a little wasteful needing to perform the same environment setup for each action when they could be set up once and have all of them run. The big pro, in my opinion, of having one |
Thanks @stmcginnis and @vuil for following up agree what @stmcginnis mentioned if I am right then you are mentioning to run yaml linter from |
+1, all the lint checks can be triggered by a single Makefile target in main workflow. Also, instead of |
Cluster Generation A/B Results: |
Cluster Generation A/B Results: |
- A bash script is added which is downloading yamllint docker image to check yamlfiles - Config file for yaml linter is added in hack/linter dir Signed-off-by: Aman Sharma <amansh@vmware.com>
- github workflow is removed for yaml lint Signed-off-by: Aman Sharma <amansh@vmware.com>
- trailing-spaces check is enabled and files are corrected - new-line-at-end-of-file check is enabled and files are corrected Signed-off-by: Aman Sharma <amansh@vmware.com>
Cluster Generation A/B Results: |
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.
LGTM, thanks for the clean up!
@vuil : This is enabling yaml linter and fixing the whitespaces and trailing new lines at the end of YAML files, would love to get this reviewed merged to avoid rebase cycles. |
What this PR does / why we need it
This PR is adding yaml linter in Github workflow.
Files added and changes in this PR.
check-yaml.yaml
file is added in.github/workflows
which is adding yaml linter in github workflow.Makefile
under repo is changed to add a make target for yaml inter.check-yaml.sh
is added underhack
dir. (the reason to add this bash script under hack is that othercheck-mdlint.sh
andcheck-license.sh
is there so following that pattern)hack/linter
ascli-wordlist.yaml
is there so assumed that that is the workspace to add the yaml files there.check-yaml.sh
working.yamllntconfig.yaml
file.Which issue(s) this PR fixes
Fixes #1322
Describe testing done for PR
Ran
make yamllint
Release note
PR Checklist
Additional information
NA
Special notes for your reviewer
NA