From 37a74d03c49907a6224241aaaf5a6fbaaa014221 Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Tue, 30 Apr 2024 08:42:40 +0200 Subject: [PATCH] checks: add configuration files for yamllint and markdownlint (#3677) Avoid discrepancy between super-linter and pre-commit settings. --- .markdownlint.yml | 3 +++ .pre-commit-config.yaml | 4 ---- .yamllint | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .markdownlint.yml create mode 100644 .yamllint diff --git a/.markdownlint.yml b/.markdownlint.yml new file mode 100644 index 00000000000..56c5c555930 --- /dev/null +++ b/.markdownlint.yml @@ -0,0 +1,3 @@ +--- + +default: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65cb46a2f53..5137a2024ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,7 +70,3 @@ repos: rev: v1.29.0 hooks: - id: yamllint - args: [--format, parsable, --strict, -d, - '{extends: default, rules: {truthy: disable, - line-length: {max: 120, allow-non-breakable-words: true}, - comments: {min-spaces-from-content: 1}}}'] diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000000..1b600992d0b --- /dev/null +++ b/.yamllint @@ -0,0 +1,15 @@ +--- + +extends: default + +rules: + comments: + level: error + min-spaces-from-content: 1 + document-start: + level: error + line-length: + level: error + max: 120 + allow-non-breakable-inline-mappings: true + truthy: disable