Re: [PATCH] checkpatch: add --json output mode

From: Joe Perches

Date: Mon Apr 06 2026 - 16:35:02 EST


On Mon, 2026-04-06 at 15:22 -0400, Konstantin Ryabitsev wrote:
> On Mon, Apr 06, 2026 at 03:13:52PM -0400, Sasha Levin wrote:
> I see that it's writing json out manually, implementing its own escaping.
> > > While there are upsides to not requiring a perl json library, I think it's
> > > fair to expect that people who would want to get json output can probably make
> > > sure that JSON::XS is installed.
> > >
> > > Not a strong object, but seems cleaner that way.

To me too.

JSON:PP is standard since 5.14, and that's 15 years old.

I'd rather just require 5.14 as a minimum and remove
a bunch of other checks too.