]> git.ipfire.org Git - thirdparty/git.git/commit
chainlint: reduce annotation noise-factor
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 10 Sep 2024 04:10:13 +0000 (00:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Sep 2024 17:01:40 +0000 (10:01 -0700)
commita13ff419636c65321aee71ed000574a4a607be56
tree0c7afc9b3c2b6bfc4426c3289c596e3ee0a84f88
parente44f15ba3ee873b5df5e8e5d8cc018df288472ef
chainlint: reduce annotation noise-factor

When chainlint detects a problem in a test definition, it highlights the
offending code with a "?!...?!" annotation. The rather curious "?!"
decoration was chosen to draw the reader's attention to the problem area
and to act as a good "needle" when using the terminal's search feature
to "jump" to the next problem.

Later, chainlint learned to color its output when sent to a terminal.
Problem annotations are colored with a red background which stands out
well from surrounding text, thus easily draws the reader's attention.
Together with the preceding change which gave all problem annotations a
uniform "LINT:" prefix, the noisy "?!" decoration has become superfluous
as a search "needle" so omit it when output is colored.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/chainlint.pl
t/test-lib.sh