diff --git a/yamllint/cli.py b/yamllint/cli.py index d7fa156..c196f56 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -229,6 +229,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 open(file, newline='') as f: problems = linter.run(f, conf, filepath)