Re: Checkpatch Feature Idea: Search directory for files with errors and warnings with -d argument

From: Joe Perches
Date: Tue Jul 15 2014 - 23:39:10 EST


On Tue, 2014-07-15 at 22:50 -0400, Nick Krause wrote:
> I may have not found it myself but if it doesn't exist can we write a
> feature for checkpatch to be able to recursively
> search a directory structure with a -d argument in order to make it
> easier to search larger directories for files that still
> need cleanup for files having kernel coding style issues.

xargs already works fine.

git ls-files <dir>/*.[ch] | xargs ./scripts/checkpatch.pl -f

I suggest you only use anything like this
on staging directories.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/