-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH Actions: add Yamllint to
validate
workflow
... to loosely safeguard valid and consistent yaml files and prevent issues like seen in PR 68. Includes adding a configuration file which loosens up the `default` ruleset to a degree I'm comfortable with. Ref: https://yamllint.readthedocs.io/
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Details on the default config: | ||
# https://yamllint.readthedocs.io/en/stable/configuration.html#default-configuration | ||
extends: default | ||
|
||
yaml-files: | ||
- '*.yaml' | ||
- '*.yml' | ||
- '.yamllint' | ||
- 'phpstan.neon' | ||
|
||
# Rule documentation: https://yamllint.readthedocs.io/en/stable/rules.html | ||
rules: | ||
colons: | ||
max-spaces-after: -1 # Disabled to allow aligning of values. | ||
comments: | ||
min-spaces-from-content: 1 | ||
comments-indentation: {} | ||
document-start: | ||
present: false | ||
line-length: | ||
max: 150 | ||
truthy: | ||
allowed-values: ["true", "false", "on", "off"] |