From 6a06e8d5125c6625bc058b1971aefb115f7e75dd Mon Sep 17 00:00:00 2001 From: QuentinN42 Date: Sat, 5 Feb 2022 10:34:34 +0100 Subject: [PATCH] feat: changed json output file name to path https://github.com/adrienverge/yamllint/pull/442#issuecomment-1030572919 --- yamllint/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/format.py b/yamllint/format.py index 98919ab..c5218cf 100644 --- a/yamllint/format.py +++ b/yamllint/format.py @@ -238,7 +238,7 @@ class JSONFormater(Formater): def show_problem(self, problem, file): """Show all problems of a specific file.""" - return {**problem.dict, "file": file} + return {**problem.dict, "path": file} class JunitFormater(Formater):