Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp604922pxb; Thu, 25 Feb 2021 10:13:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSIV40UNVw3cF1XEZiC6nz0PGMwxo0MEGrKEpMTS8V41RBm6YVm0OvMDWEiZ1M9zC01aRZ X-Received: by 2002:a17:906:1448:: with SMTP id q8mr3841172ejc.449.1614276817860; Thu, 25 Feb 2021 10:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614276817; cv=none; d=google.com; s=arc-20160816; b=hGQVtuzcP4Pt6jMlqT58rxVAnNJhu0s/DmfJWFCMhEFzT6wri61HNkiuXHEszw+cVi TNsp+FSYLbLYhJnfybASDlLB8iJwCSq73OccDKOPC82ml+91RnN6A9ciwfX3G7nIEdmK 1j4Cka9/vPBMRxGWVqj6WeEYMDhm30mLw49sHoLWQO7+ffRCu944ullbkpFBhgaDyZZk xpfT7toYUeS0IzWZotJqsl/F4MvQts6HQb6rRyKPi5afmjC18Ax2uEvWOmdWtrstaj3u NtUUdq+IlQZd55t3X8ACUX39rb866bnrxI+Q/d00WcEQqpVWOslkIB49PnBFGUPdDD1l S/LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rj0OsYaNL34XbEioDj/Af/QfOoWUzIIX4i9RAcv1ZFg=; b=FmRTn+YUFVFvy2kgCsl6pBo1326Mvn3szv3d7g4+uHz9fbHITL0KQ1KfxAtATuhceE 6erzokCpG8oPukLGbbTqZ1tRvSr+jzx6VHQ4dM/cAYt7Iol2tRs0FqZhVMEecubsUmtb bNU3Ns1tj9QmALOn8UCwslxMN8oInp5FjCLkqd/GugOeYeQ0BFoxaJrzJqCLszTflPKn COIt/67j9AOjdpd7fSU54GMIHjiFMy7wMRDqy7D8jPDsLY7U6l+Z+ThE/zqRrEOHFpUq 1ueeCQJxTIkB0eVLUlQ+24HUWh6F5vpnjZxt3yOyzTD+JqamD9TJQ0CurTmSMic7zZJX V2+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="AKmQ/PwN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si4520011ejc.593.2021.02.25.10.13.13; Thu, 25 Feb 2021 10:13:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="AKmQ/PwN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231439AbhBYSLd (ORCPT + 99 others); Thu, 25 Feb 2021 13:11:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233357AbhBYSIq (ORCPT ); Thu, 25 Feb 2021 13:08:46 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B090C061786 for ; Thu, 25 Feb 2021 10:08:05 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id d24so9911106lfs.8 for ; Thu, 25 Feb 2021 10:08:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rj0OsYaNL34XbEioDj/Af/QfOoWUzIIX4i9RAcv1ZFg=; b=AKmQ/PwNRQXowoI7jUu6xYvVRJOCtwSnT8+QIWg0tFCHnyB2C7l7UvJDo48V+dGq1W vkN1eS9NAIJYUkBwgZaWuuswXJEPsgCIL+d92yFfZt0fPGco0R7LSN99JZT8OvGEOBZ/ uLcPsWqjY+kvPAB5+N/H+VmK30sEW5cuixh/71u3VAVZRyu8yF7QXRxQDMvIS+/X8yn3 jcO6xNQVFLk3D96j1tyQqRDneVlLsOA+NrkdutK44UbJ0cCEK24YaOtakHGzRLJ3AGKt hMuSolXtPlpv/P7S9bfTd3MlzUJHe4mKYqsB8dKqqYsSQQsy3mCcwFx4JJsRUoztcpZs vhvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rj0OsYaNL34XbEioDj/Af/QfOoWUzIIX4i9RAcv1ZFg=; b=aUDj8RsJHv4O7LWHQAGXCWFzWpIu0ctDTLDRY3YKFnMc0x9y8ZFdEijBI7A+XIVgIR KN+yJGXq376byMN0RkyT/xE7eJ2voIBciERmlMq1ee4PuSkOjiLriCdscUWZTOMzBg4C UBmc/gjsc1BUhQuegYre3zgrbpqsCPuNhdvsuxhYwuZ8iaAxEgFBSZATr+zbuW7ZjfcP D8BWLhjMir+8kSRofd6eoS23hbpS9kmFyBzeQ47zvOLmyDBklJcSb6Z8mD/Y+G+ALfeS MKklFus2paW/v7qCwdZM4/FG8U4aAmesQZAPOwcUQsfsuSoU1Br1bJtr4ZCusgzUCLAZ /S4Q== X-Gm-Message-State: AOAM533ZqUBw6VF2S7w440pC9eGI9pBIM8q8e/EOnkez9RKObRAleUUc PtedavGpjbUyi9iGSX0fwgoK9/eu2EfCiu+hKKQ= X-Received: by 2002:a19:c194:: with SMTP id r142mr2663295lff.342.1614276483823; Thu, 25 Feb 2021 10:08:03 -0800 (PST) MIME-Version: 1.0 References: <20210222075205.19834-1-dwaipayanray1@gmail.com> In-Reply-To: From: Dwaipayan Ray Date: Thu, 25 Feb 2021 23:38:03 +0530 Message-ID: Subject: Re: [PATCH v7 0/2] checkpatch: add verbose mode To: Joe Perches Cc: Jonathan Corbet , Mauro Carvalho Chehab , Lukas Bulwahn , linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > > On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > > Add a new verbose mode to checkpatch. The verbose test > > descriptions are read from the checkpatch documentation > > file at `Documentation/dev-tools/checkpatch.rst`. > > > > The verbose mode is optional and can be enabled by the > > flag -v or --verbose. > > > > The documentation file is only parsed by checkpatch.pl > > if the verbose mode is enabled. The verbose mode can > > not be used together with the --terse option. > > I don't have any real objection to this patch set, but as this > might be added to the Documentation tree and in .rst format, > perhaps Jonathan Corbet and/or Mauro Carvalho Chehab might have > some opinion. > > Also I do not want to be a maintainer of this .rst file and > likely neither Jon nor Mauro would either. Perhaps you? > I could take it up if everybody is okay with it! > Ideally, the patch order would be reversed so the .rst file > is added first, then checkpatch updated to use it. > Sure, if Jonathan or Mauro has no objections to it, I will be happy to resend it so that it can be picked up properly. > And _a lot_ more types and descriptive content should be added. Yes that's for sure. If this makes it I will try to get all of the other types in. And if Lukas agrees, a little help from my fellow kernel mentees will be nice as well! With warm regards, Dwaipayan. > > > > Changes in v7: > > - Add color coding support to --list-types option > > > > Changes in v6: > > - Allow using verbose mode with --list-types option > > > > Changes in v5: > > - Change the reference format to use absolute links. > > - Print verbose descriptions only for the first time > > a message type is encountered. > > > > Changes in v4: > > - Change the type description format > > - Group the message types by usage > > - Make handling of --terse with --verbose simpler > > > > Changes in v3: > > - Simplify documentation file parsing in checkpatch > > - Document a total of 33 message types for checkpatch > > > > Changes in v2: > > - Use .rst Field Lists to specify the type descriptions. > > - Add a few more type descriptions to documentation. > > > > Dwaipayan Ray (2): > > checkpatch: add verbose mode > > docs: add documentation for checkpatch > > > > Documentation/dev-tools/checkpatch.rst | 525 +++++++++++++++++++++++++ > > Documentation/dev-tools/index.rst | 1 + > > scripts/checkpatch.pl | 133 ++++++- > > 3 files changed, 639 insertions(+), 20 deletions(-) > > create mode 100644 Documentation/dev-tools/checkpatch.rst > > > >