diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2021-09-27 10:16:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 10:16:39 -0400 |
commit | f183dc8aead7d2e64eb97e169b89d6cc90d78aa5 (patch) | |
tree | 69f76cc7565502bcd0d1b1e5ac277e49e9fce2d0 /.yamllint.yml | |
parent | 07946d9f0a8826c841db5754cfa6a59871ea1ef7 (diff) |
Clean up YAML files in the repository. (#11570)
* Assorted yamllint config updates.
* Extended line length limit to 150. This is still a reasonable limit
but cuts down on warnings a bit.
* Added explicit ignore directives for external repo paths. This makes
using yamllint locally nicer.
* Enabled the rule to require null values to be explicit. This rule
helps prevent accidental bogus mapping problems resulting from
implicit null values combined with incorrect indentation.
This only results in new errors in a couple of GHA workflows, which will
be fixed in the next commit.
* Fix all yamllint warnings in yaml file sin the repo.
Most are indentation or spurious empty lines.
* Fix invalid null value.
Diffstat (limited to '.yamllint.yml')
-rw-r--r-- | .yamllint.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.yamllint.yml b/.yamllint.yml index 09d99aa8c7..b05de20626 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -6,10 +6,11 @@ yaml-files: - 'collectors/python.d.plugin/*.conf' - 'collectors/python.d.plugin/*/*.conf' +ignore: | + mqtt_websockets/ + packaging/makeself/tmp/ + rules: - line-length: - max: 120 - level: warning braces: enable brackets: enable colons: enable @@ -19,9 +20,14 @@ rules: document-end: disable document-start: disable empty-lines: enable - empty-values: disable + empty-values: enable hyphens: enable indentation: enable + line-length: + max: 150 + level: warning + allow-non-breakable-words: true + allow-non-breakable-inline-mappings: true key-duplicates: enable key-ordering: disable new-line-at-end-of-file: enable |