Re: [PATCH 2/2] checkpatch: Add --conf-dir option

From: Joe Perches

Date: Fri Feb 20 2026 - 12:14:21 EST


On Mon, 2026-02-02 at 15:42 +0100, Petr Vorel wrote:
> ```
> This allows to directly use project configuration file for projects
> which vendored checkpatch.pl (e.g. LTP or u-boot).
>
> Options from the configuration file has been read before processing
> command line options with Getopt::Long since the start (000d1cc1829f9)
> because options read from config file needs to be unshifted from command
> line arguments (@ARGV) before processing with Getopt::Long. Therefore
> parse --conf-dir with direct reading @ARGV.

nack.

Extend 'sub which_conf {' and the perhaps the code that uses it
if you really need this capability.

Though I think it's not all that useful.