From 8da98f21224fa277749e8bd20ed7e9afe15a4d11 Mon Sep 17 00:00:00 2001 From: Kirill Deyko Date: Tue, 18 Aug 2020 21:07:54 +0300 Subject: [PATCH] commas: Fix example in documentation Error in the example snippet, it would NOT pass otherwise actually: ``` $ cat test.yml strange var: [10, 20,30, {x: 1, y: 2}] $ yamllint -d "{extends: default, rules: {commas: {min-spaces-after: 1, max-spaces-after: 1}}}" test.yml test.yml 1:1 warning missing document start "---" (document-start) 2:11 error too few spaces after comma (commas) ``` --- yamllint/rules/commas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/rules/commas.py b/yamllint/rules/commas.py index df17a6a..fe4888f 100644 --- a/yamllint/rules/commas.py +++ b/yamllint/rules/commas.py @@ -76,7 +76,7 @@ Use this rule to control the number of spaces before and after commas (``,``). :: strange var: - [10, 20,30, {x: 1, y: 2}] + [10, 20, 30, {x: 1, y: 2}] the following code snippet would **FAIL**: ::