Re: [PATCH] checkpatch: simplify the output of --list-types

From: Jean Delvare
Date: Tue Sep 05 2017 - 05:37:45 EST


On Mon, 04 Sep 2017 08:48:36 -0700, Joe Perches wrote:
> On Mon, 2017-09-04 at 10:08 +0200, Jean Delvare wrote:
> > Drop the header and numbering of types. This format was confusing as
> > it suggested one could pass the number instead of the type name,
> > however it did not actually work, and numbering wasn't stable anyway.
>
> <shrug> If it makes you happy.
>
> I suppose a bigger improvement would be to detail
> the purpose of each type.

That would be great indeed, however this would require a completely
different approach, as I can't think of a way to automatically extract
this information by just parsing the script.

> Most are fairly obvious, some like MEMSET are
> a bit obscure.
>
> Another defect:
>
> The list also includes types that are commented out.

This could be considered a feature: if they were not listed, the user
would have no idea that they can be commented out.

OTOH I'm not sure why some tests are commented out in the first place,
it doesn't make much sense to me. Either they serve a purpose and they
should be enabled, or there is some kind of issue with them and they
should be either fixed or deleted altogether.

--
Jean Delvare
SUSE L3 Support