From bf8e943a6626d732b96e1072f5968713bd272731 Mon Sep 17 00:00:00 2001 From: Roman Geraskin Date: Sat, 6 Aug 2022 21:49:13 +0300 Subject: [PATCH] quoted-strings: allow-quoted-quotes to guidelines --- yamllint/rules/quoted_strings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yamllint/rules/quoted_strings.py b/yamllint/rules/quoted_strings.py index ffeb164..c081c6c 100644 --- a/yamllint/rules/quoted_strings.py +++ b/yamllint/rules/quoted_strings.py @@ -149,7 +149,7 @@ CONF = {'quote-type': ('any', 'single', 'double'), 'required': (True, False, 'only-when-needed'), 'extra-required': [str], 'extra-allowed': [str], - 'allow-quoted-quotes': (True, False)} + 'allow-quoted-quotes': bool} DEFAULT = {'quote-type': 'any', 'required': True, 'extra-required': [], @@ -225,7 +225,6 @@ def check(conf, token, prev, next, nextnext, context): if (not token.plain) and (token.style == "|" or token.style == ">"): return - # Check value is quoted qoute if (conf['allow-quoted-quotes'] is True and (not token.plain) and ((token.style == "'" and '"' in token.value) or (token.style == '"' and "'" in token.value))):