From f4edb85a04beebcbdfd63bced0bc4918a514db10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Wed, 19 Jul 2017 09:48:00 +0200 Subject: [PATCH] fix(config): Be clearer about the `ignore` conf type --- yamllint/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yamllint/config.py b/yamllint/config.py index fb5a161..f9e4de8 100644 --- a/yamllint/config.py +++ b/yamllint/config.py @@ -87,7 +87,7 @@ class YamlLintConfig(object): if 'ignore' in conf: if type(conf['ignore']) != str: raise YamlLintConfigError( - 'invalid config: ignore should be a list of patterns') + 'invalid config: ignore should contain file patterns') self.ignore = pathspec.PathSpec.from_lines( 'gitwildmatch', conf['ignore'].splitlines()) @@ -112,7 +112,7 @@ def validate_rule_conf(rule, conf): type(conf['ignore']) != pathspec.pathspec.PathSpec): if type(conf['ignore']) != str: raise YamlLintConfigError( - 'invalid config: ignore should be a list of patterns') + 'invalid config: ignore should contain file patterns') conf['ignore'] = pathspec.PathSpec.from_lines( 'gitwildmatch', conf['ignore'].splitlines())