From 7a3c6d6fa216e4d7f0cd4bdf1da80bdc589fd7ac Mon Sep 17 00:00:00 2001 From: Thomas Stewart Date: Thu, 5 Aug 2021 16:17:47 +0100 Subject: [PATCH] Initial fix for issue 399 --- yamllint/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yamllint/cli.py b/yamllint/cli.py index cb87350..ee31dee 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -201,6 +201,8 @@ def run(argv=None): for file in find_files_recursively(args.files, conf): filepath = file[2:] if file.startswith('./') else file + if(conf.is_file_ignored(filepath) or None): + continue try: with io.open(file, newline='') as f: problems = linter.run(f, conf, filepath)