chainlint: prefix annotated test definition with line numbers
commit48d69d8f2fe4af753bdb6f626bc444ec24ce02b4
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 11 Nov 2022 07:34:54 +0000 (11 07:34 +0000)
committerTaylor Blau <me@ttaylorr.com>
Fri, 11 Nov 2022 21:56:21 +0000 (11 16:56 -0500)
tree75d14f758ab9408c6bd72a47356e2247a950ffbf
parentbf42f0a030da98dd02bb95109121c24ed3684ac8
chainlint: prefix annotated test definition with line numbers

When chainlint detects problems in a test, it prints out the name of the
test script, the name of the problematic test, and a copy of the test
definition with "?!FOO?!" annotations inserted at the locations where
problems were detected. Taken together this information is sufficient
for the test author to identify the problematic code in the original
test definition. However, in a lengthy script or a lengthy test
definition, the author may still end up using the editor's search
feature to home in on the exact problem location.

To further assist the test author, display line numbers along with the
annotated test definition, thus allowing the author to jump directly to
each problematic line.

Suggested-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
t/Makefile
t/chainlint.pl