From 660ef2edb85f09e2f9c97c5672ec8be80ea5c98e Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 21 May 2021 16:49:15 +0100 Subject: [PATCH] Disable comments-identation yaml rule 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.