From 08f99ccc19c683b5eb53002cd6b51545428b9267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Thu, 21 Jan 2016 21:59:07 +0100 Subject: [PATCH] Rules: new-lines: Force `type` to be in ('unix', 'dos') --- yamllint/rules/new_lines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/rules/new_lines.py b/yamllint/rules/new_lines.py index 0874315..5b95e37 100644 --- a/yamllint/rules/new_lines.py +++ b/yamllint/rules/new_lines.py @@ -19,7 +19,7 @@ from yamllint.errors import LintProblem ID = 'new-lines' TYPE = 'line' -CONF = {'type': str} +CONF = {'type': ('unix', 'dos')} def check(conf, line):