From aedccc1f0c7dee8d5027a6fbf0ddc2213b390459 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sat, 22 May 2021 06:39:30 +0100 Subject: [PATCH] Disable comments-identation yaml rule (#1572) In order to avoid false positive results about comment identation, Keep in mind that these settings are used only if there is no .yamllint config inside the current repository. Users still have the option to override the default value and reactivate the rule if they want. Related: https://github.com/adrienverge/yamllint/issues/384 --- src/ansiblelint/rules/YamllintRule.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ansiblelint/rules/YamllintRule.py b/src/ansiblelint/rules/YamllintRule.py index 7598a13635..0f3de3a7b1 100644 --- a/src/ansiblelint/rules/YamllintRule.py +++ b/src/ansiblelint/rules/YamllintRule.py @@ -28,6 +28,8 @@ YAMLLINT_CONFIG = """ extends: default rules: + # https://github.com/adrienverge/yamllint/issues/384 + comments-indentation: false document-start: disable # 160 chars was the default used by old E204 rule, but # you can easily change it or disable in your .yamllint file.