diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2023-07-10 16:07:17 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-07-14 14:29:48 +0000 |
commit | d5e336720d80d2285d30ee334de29f1b2af54fb2 (patch) | |
tree | db52e80f56125a31ea2adc03f343a327378ddfbf | |
parent | d1d17908faa5085b7d53e160d926995262c5d09d (diff) |
util/lint/checkpatch_json.py: Make output message verbatim
Some of the error messages of checkpatch.pl contain "*". Since now
Gerrit supports markdown, messages with "*" will be rendered
incorrectly. For example,
foo* bar should be foo *bar
will be shown as
foo bar should be foo bar
with "bar should be foo" being in italics. Fix the problem by
surrounding the output message with "`" to make it verbatim.
Change-Id: I02d0e894adf7f94a9e154f99321f51d4097963a5
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76392
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
-rwxr-xr-x | util/lint/checkpatch_json.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py index 341bc57733..967e898817 100755 --- a/util/lint/checkpatch_json.py +++ b/util/lint/checkpatch_json.py @@ -24,8 +24,8 @@ def update_struct( file_path, msg_output, line_number): "robot_run_id" : sys.argv[3], "url" : sys.argv[4], "line" : line_number, - "message" : msg_output,} - ) + "message" : "`" + msg_output + "`", + }) def parse_file(input_file): fp = open (input_file, "r") |