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 especially .hlint.yaml
.
#5797
Conversation
Looking at the files that have changed, some of them seem to have changed largely because indentation has been added or increased. May I ask, what is the rationale for those changes? |
On the linting of YAML, as you can see, historically, the stylistic preference here has been what I think yamllint refers to as |
I use
The option of formatting |
Thanks! I've merged that, with a little tinkering. It seemed to me sensible to apply it to all of the YAML files in the respository. It also seemed to me sensible to combine all linting (yamllint, HLint) into a single 'linting' workflow. I did change the |
@mpilgrem the github workflow sample code uses indented arrays. |
The vscode editor showed problems with
.hlint.yaml
. I was able to reproduce these before fixing them by installing and configuring yamllint for which I added a GitHub action. In reviewing.hlint.yaml
I saw that we should have been adding our errors before any ignores. Added a comment introducing why we have the "Use alternative" ignore. The ignore for "Too strict maybe" was repeated so I reduced this duplication collecting the within modules together. For YAML linting I'm ignoring most of.gitub/workflows/
,doc
andtest
folders.I pulled the hlint action out of the unit-tests action and used
haskell/actions/setup-hlint
for the set up.