mirror of
https://gh.wpcy.net/https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-04-27 01:12:39 +08:00
... 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/
22 lines
544 B
YAML
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"]
|