WordPress-Coding-Standards/.yamllint.yml
jrfnl b8777606dd
GH Actions: add Yamllint to QA basics
... to loosely safeguard valid and consistent yaml files.

Includes adding a configuration file which loosens up the default ruleset to a degree I'm comfortable with.

Includes minor tweaks to fix the existing yml files.

Ref: https://yamllint.readthedocs.io/
2023-08-21 22:23:55 +02:00

22 lines
544 B
YAML

# Details on the default config:
# https://yamllint.readthedocs.io/en/stable/configuration.html#default-configuration
extends: default
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
# 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: 145
truthy:
allowed-values: ["true", "false", "on", "off"]