From 663bec9f4d1cce7f5ff3e3a58dd09a44989dcee5 Mon Sep 17 00:00:00 2001 From: Kirill Deyko Date: Tue, 18 Aug 2020 20:49:09 +0300 Subject: [PATCH] Update commas.py Error in the example snippet, it would NOT pass otherwise actually: ``` 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**: ::