From 4baaf1200d5b1a2fce0a5346fcc235599db9a398 Mon Sep 17 00:00:00 2001 From: QuentinN42 Date: Sat, 5 Feb 2022 11:26:50 +0100 Subject: [PATCH] feat: add message to the json format --- yamllint/linter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yamllint/linter.py b/yamllint/linter.py index c35fc55..0fe2e0c 100644 --- a/yamllint/linter.py +++ b/yamllint/linter.py @@ -71,6 +71,7 @@ class LintProblem(object): "desc": self.desc, "rule": self.rule, "level": self.level, + "message": f"[{self.level}] {self.message}" }