From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D266F396D0E; Mon, 6 Apr 2026 19:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775502026; cv=none; b=uPKCuFp8y2n5TLboWthkKDZC51DXx+Bp6qBBAFwyMK3tQL4RVqOMFSiNkDIhBLPZ1Gn9J6yytklGFzVQ8ZUzpsifT5fLITpiKpcGVAMHU8pceLvrbeaJ8wGZJ5R6opYjcbtx8dtWvqoHIDzHXfePAQUY6uCPfxEYqcE6hjaAYoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775502026; c=relaxed/simple; bh=xvXQizAYbg9QVBQa12g29cd2+dl0lMrOtgt96kgKkmo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ux1GUtDEypK4vCeum6Qoa6RdjB8NQRthSQ/vK331IjSbOg/pOmVLH+G2k2g4qGLLFZg1KJ9Ps17jKqhHGHG4mz22WXL2E7APG+o4DQdV8MOfXlUUr6gA++UeKOWdSeEf13dYkVpwR1K4/tLsJcu/AZ5MW3+z5//Ww0MCLkvjIeQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G123IoML; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G123IoML" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 701E5C4CEF7; Mon, 6 Apr 2026 19:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775502026; bh=xvXQizAYbg9QVBQa12g29cd2+dl0lMrOtgt96kgKkmo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G123IoMLFAbIvOHUfizv6t0rr6NE/TK/Oii6VWr7/RoK6/JdHFVonYQ99f5OcV0Zt zR1xgAPz5sawicuwhRE2REU1d+wyvVlCm4AxmuRRE/oKaDwrCDMrJlKG9t+a6svbeK /ZRwe9CVfLcXtmNoGLZ8sumbg1riJLvJf4PkOnpC2n90usF62Q/vRw1EBygMSxeaPQ PEM7nC3ZPoQwBdMZyz5OJlXO8cwnxuUBGdL465OsUA45qXAf7cgUzxexXBfq6UJRnb B+PiX1vzVoh58Khw767MYXzpQ4oIonxSxr2sblO/vU7kjsErn0YCe2g8KNDLYEUw11 z3RVBlEClr77A== Date: Mon, 6 Apr 2026 15:00:25 -0400 From: Konstantin Ryabitsev To: Sasha Levin Cc: dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, joe@perches.com, corbet@lwn.net, skhan@linuxfoundation.org, apw@canonical.com, workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] checkpatch: add --json output mode Message-ID: <20260406-true-whippet-of-luck-d3c2ba@lemur> References: <20260406170039.4034716-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: workflows@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260406170039.4034716-1-sashal@kernel.org> On Mon, Apr 06, 2026 at 01:00:39PM -0400, Sasha Levin wrote: > Add a --json flag to checkpatch.pl that emits structured JSON output, > making results machine-parseable for CI systems, IDE integrations, and > AI-assisted code review tools. > > The JSON output includes per-file totals (errors, warnings, checks, > lines) and an array of individual issues with structured fields for > level, type, message, file path, and line number. > > The --json flag is mutually exclusive with --terse and --emacs. > Normal text output behavior is completely unchanged when --json is > not specified. 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. -K