From 430662daca4e1709fa1a59c29cd2cefd52802f37 Mon Sep 17 00:00:00 2001 From: zjc_he Date: Sun, 5 May 2024 21:44:47 +0800 Subject: [PATCH] fix(internal/parsers/clang_tidy/score.go): slightly fix the output format --- examples/clang-tidy/sillycode | 2 +- internal/parsers/clang_tidy/score.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/clang-tidy/sillycode b/examples/clang-tidy/sillycode index bb8c33d..422868c 160000 --- a/examples/clang-tidy/sillycode +++ b/examples/clang-tidy/sillycode @@ -1 +1 @@ -Subproject commit bb8c33dc62742f7fc9f25ac91582fc4fa4ac3d5d +Subproject commit 422868c1c6427ce73e665477b40922c72ccc14e5 diff --git a/internal/parsers/clang_tidy/score.go b/internal/parsers/clang_tidy/score.go index 002533f..9630824 100644 --- a/internal/parsers/clang_tidy/score.go +++ b/internal/parsers/clang_tidy/score.go @@ -30,7 +30,7 @@ func get_score(json_messages []json_message, conf Conf) int { } func get_comment(json_messages []json_message) string { - res := "```\n### Test results summary\n\n" + res := "### Test results summary\n\n" keys := [...]string{ "codequality-unchecked-malloc-result", "codequality-no-global-variables", @@ -72,6 +72,5 @@ func get_comment(json_messages []json_message) string { for i, key := range keys { res = fmt.Sprintf("%s%d. %s: %d\n", res, i+1, key, mapping[key]) } - res += "```" return res }