Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp703226pxb; Thu, 25 Feb 2021 12:53:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFHzWaQT9AQu8kcwLU7eZPN8xnW9vRcQ3HUss3+iFIoKKNtpHljsu5Huu2Zf9Mf0FWJk7t X-Received: by 2002:a05:6402:293:: with SMTP id l19mr5121080edv.4.1614286383932; Thu, 25 Feb 2021 12:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614286383; cv=none; d=google.com; s=arc-20160816; b=OS8TIEXY9WENuZpa/+KDH4hBWucS2iRLKV4CUowEkROdy9vOBy4f3tF+Xxd1SojoJN oMDyRs70bpArr9cQsSaCNJeOu6VPOA1WnG7lezp18mnMri6HQg+EjukJ5oKWaPBL9T+o cXyS7oPxUW3L9vQI6VbBdehzBXF4k9KmVLDxW3zSVJFX+phAyx6YsxKefdx6ExqYW9sc J52TuV1kO3jGbftaJqJoJgnMtWjgupg7osLrmmp1ha84hA7ywOM+1IfYl90yqLD6xfbW 6wGsawBSH9mnDD94Zrz30JJnZxxlXwkHixTGS+5fcnp7jYOMaUAFGyBi1rgSuX4WPK+0 Yc2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=1QCeKm1OQX2ONXWRAZFDippoTMFeWQyYATb5LORad7k=; b=pzvq3xMCwVznA73ZRaLAl28lSGchKJdLf4e8q7D/864Igb/dszevsoBVTaQ2uNW+he 6LXuGmT11sabK29YwcxsCKRu+Vl1m2J3p63y1E7sAHXKb+wFxQoztIV0eN56l/zZmycm AK652hMhKq78qD5QRlv9dP4Eqtwd9erGvyLMGdMGJTFOSrM4gMO0Bx4GgbWOSUYFjGvN zdeL1aQIKkc9VVBCUVIaL0jsUXHSBzwpvYrNdzBqgFmK5I1eENd7zjjOUqrJw+Rn0ite fq6vZrI9E3ajeVBLG7cLALcPprjTT3ig1wjuGnm8nSbXWeqtwSWDUbSMOl5eHM0R9aD8 D9og== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si3883018ejr.455.2021.02.25.12.52.40; Thu, 25 Feb 2021 12:53:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbhBYRea (ORCPT + 99 others); Thu, 25 Feb 2021 12:34:30 -0500 Received: from smtprelay0086.hostedemail.com ([216.40.44.86]:37152 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229548AbhBYRe2 (ORCPT ); Thu, 25 Feb 2021 12:34:28 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id A1E62180364DB; Thu, 25 Feb 2021 17:33:42 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:982:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2731:2828:2895:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:4321:4605:5007:6119:6691:7652:7875:7903:9010:10004:10400:11232:11658:11783:11914:12043:12291:12296:12297:12555:12740:12895:13095:13138:13231:13439:13894:14181:14659:14721:21080:21433:21611:21627:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: view71_120217127693 X-Filterd-Recvd-Size: 3052 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Thu, 25 Feb 2021 17:33:41 +0000 (UTC) Message-ID: Subject: Re: [PATCH v7 0/2] checkpatch: add verbose mode From: Joe Perches To: Dwaipayan Ray , Jonathan Corbet , Mauro Carvalho Chehab Cc: lukas.bulwahn@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Date: Thu, 25 Feb 2021 09:33:40 -0800 In-Reply-To: <20210222075205.19834-1-dwaipayanray1@gmail.com> References: <20210222075205.19834-1-dwaipayanray1@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Ideally, the patch order would be reversed so the .rst file is added first, then checkpatch updated to use it. And _a lot_ more types and descriptive content should be added. > > 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 >