From 874a6d57745598189525c26e394f01754e090446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Riel?= Date: Thu, 29 Apr 2021 08:15:50 -0400 Subject: [PATCH] Fix shown path Shown filepath should use the cleaned version --- yamllint/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/cli.py b/yamllint/cli.py index cb87350..35153c6 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -207,7 +207,7 @@ def run(argv=None): except EnvironmentError as e: print(e, file=sys.stderr) sys.exit(-1) - prob_level = show_problems(problems, file, args_format=args.format, + prob_level = show_problems(problems, filepath, args_format=args.format, no_warn=args.no_warnings) max_level = max(max_level, prob_level)