-
Notifications
You must be signed in to change notification settings - Fork 54
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
ci(yamllint): add YAML linting (#838) #838
base: master
Are you sure you want to change the base?
Conversation
e2b0493
to
788d644
Compare
788d644
to
97b0a62
Compare
521553e
to
d4df666
Compare
.editorconfig
Outdated
[Dockerfile] | ||
indent_size = 4 | ||
|
||
[*.md] |
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.
I'll take out the editorconfig because some of the values are not compatible with prettier etc code formatters. I'll introduce prettier style checks later on.
run-tests.sh
Outdated
} | ||
|
||
check_markdownlint () { | ||
markdownlint-cli2 . |
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.
Better say markdownlint-cli2 "**/*.md"
here which will catch more files.
.markdownlint.yaml
Outdated
# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md013.md | ||
MD013: false | ||
|
||
# MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md037.md |
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.
Some of these checks are not necessary as they would catch only a handful of cases. I'll amend the sources and remove them and repush.
Co-authored-by: Tibor Šimko <[email protected]>
d4df666
to
a808a4e
Compare
Closes reanahub#836 Co-authored-by: Tibor Šimko <[email protected]>
Also adds basic `.editorconfig` configuration for various languages since this is the primary way how to configure `shfmt` shell script source code formatting with respect to indentation. Closes reanahub#836
a808a4e
to
df67510
Compare
Also adds basic `.editorconfig` configuration for various languages since this is the primary way how to configure `shfmt` shell script source code formatting with respect to indentation. Closes reanahub#836
df67510
to
8e3c97e
Compare
Also adds basic `.editorconfig` configuration for various languages since this is the primary way how to configure `shfmt` shell script source code formatting with respect to indentation. Closes reanahub#836
da20d10
to
43f8cb1
Compare
43f8cb1
to
227cd30
Compare
Closes reanahub#836 Co-authored-by: Tibor Šimko <[email protected]>
Also adds basic `.editorconfig` configuration for various languages since this is the primary way how to configure `shfmt` shell script source code formatting with respect to indentation. Closes reanahub#836
227cd30
to
47ffab1
Compare
Closes reanahub#836 Co-authored-by: Tibor Šimko <[email protected]>
Also adds basic `.editorconfig` configuration for various languages since this is the primary way how to configure `shfmt` shell script source code formatting with respect to indentation. Closes reanahub#836
47ffab1
to
514412e
Compare
Also adds basic `.editorconfig` configuration for various languages since this is the primary way how to configure `shfmt` shell script source code formatting with respect to indentation. Closes reanahub#836
514412e
to
8f4c9ff
Compare
In addition to adding JSON linting, orders all the GitHub CI checks alphabetically. Closes reanahub#836
8f4c9ff
to
456fae3
Compare
In addition to adding JSON linting, this commit orders all GitHub CI checks alphabetically. Closes reanahub#836
456fae3
to
430e2e4
Compare
Related to #836
Add YAML linting for all files except Helm chart files, which are linted by
helm lint
andct lint
(yamllint
does not understand templating language and fails with invalid syntax errors).Updatevalues-dev.yaml
file to pass linter checks.Add
.editorconfig
file with rules for various files. Adding also .go as I remember we were talking that it would be good if the file could be used everywhere, we'll be able to copypaste it to other repositories and there will be no need for changes if new files are introduced to the repository. Let me know if it is better to only add config only for the files that currently exist in the repository.For markdownlint, some rules were disabled because there will be to many changes to existing files (e. g. line length). Some rules do not work due to some specific contents in files, e. g. we have cron schedule defined (* * * * *) and markdownlint thinks this is emphasis (bold) and throws warning that there is a space between emphasis asterisks.