[ccan] ccanlint output prettification
Joseph Adams
joeyadams3.14159 at gmail.com
Tue Mar 22 16:24:53 EST 2011
I think it would be nice if ccanlint's output were prettier. Attached
is a quick hack to illustrate. It prints colorized and indented
PASS/FAIL messages, and looks like this:
http://img804.imageshack.us/img804/6163/ccanlintpretty1.png
Although this is a work in progress and not meant for upstream (it
completely ignores the verbosity level), I personally have found it to
be handy.
Also, I'm thinking this is what ccanlint -v should output (currently,
you need -vv to get the itemized output, which also prints other
details). Printing itemized output with ccanlint (no arguments) would
likely be annoying for small modules that don't have time-consuming
tests. However, an animated progress indicator would be neat.
Also, the output in the demo is significantly wider than 80
characters. This could be fixed by making the descriptions shorter
and/or omitting the test keys in the output.
I plan to implement this when I have an abundance of time. In the
mean time, thoughts?
Joey Adams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Hacked-in-pretty-ccanlint-PASS-FAIL-output-for-demon.patch
Type: text/x-patch
Size: 2095 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20110322/53e3385a/attachment.bin>
More information about the ccan
mailing list