Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14504540pxu; Tue, 5 Jan 2021 03:28:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVcCiR9MreQstgp4H/k9GZYsH0e527JCYNZ5ADHC+S1k3N8g7C89SO15Xfl+ntKa3abCpV X-Received: by 2002:aa7:d593:: with SMTP id r19mr22462064edq.246.1609846115962; Tue, 05 Jan 2021 03:28:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609846115; cv=none; d=google.com; s=arc-20160816; b=sONHbeXPk0FamOXJ6MLaWQkpSommchcSt+Vcglv/BGytmiAp+8goGLn8QWDymn5kqB 7YOttQUHJMPVMsh65NYd+OuSupsklSQ/DmjaJMySx1/4u28w6zO5HekQvBpX8ZebyG4N MmfIlaq/P+WFb/JDS369VYB0rwBpmatlcrpbUlujP4iV4YXuTVcymfe+p0IbwfdwWqjz 0e4VtVCOyVHPb1Qz/RDqqxSz4U3uWz67SOkk/i8RUpGYaOZ/cSpIMdMTtRskGlkXWQvG WR3kXaGLwcvWIi09jZ4aj+OCZAJ3S1NcBqbJFIIbUN8U2XW+jXzz8dnSUtQxZNCk0RyV PLlw== 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=vRd7KbYw2HbI1jjSzku5twAj5iWScQT6+eDFE8CnTYA=; b=gteJr9p9WHTXPVMDf9ifqXlfMW+D/yo/1+C14eM5HlnNoV/7dj0dBudOLOFPo0DroH evt3y/kmUAXh6F0mmkw7oY9B7QWChl7s2cjyxjVu6cAGcHxl/v2tw1ouH1hYdxZnMuXN 25djZkZXM5UBRWvQkm1NdY1F6bRvdvloj6uUHH44+ohBhLtHR6gGZQRhhzz1pQn5GUCC GeRAdsHyHRaIwZqLLVNePaV0ml064brsa78eqUgnNcEl/LbzMLA/T8FSljC4s6C0Zq7i QDeISNs+GefYjQb9s0n+ZsTovPq+X2Ynucb5e1hX/TcCNWQqro8fOGX3MrJZ32YQ5cUf Sfrg== 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 o12si29460453ejg.407.2021.01.05.03.28.12; Tue, 05 Jan 2021 03:28:35 -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 S1727186AbhAEI5x (ORCPT + 99 others); Tue, 5 Jan 2021 03:57:53 -0500 Received: from smtprelay0213.hostedemail.com ([216.40.44.213]:48806 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726982AbhAEI5w (ORCPT ); Tue, 5 Jan 2021 03:57:52 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 55201100E7B44; Tue, 5 Jan 2021 08:57:11 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:4321:4605:5007:7652:7875:9121:10004:10400:10848:11232:11658:11914:12297:12346:12740:12760:12895:13069:13095:13161:13229:13311:13357:13439:14096:14097:14181:14659:14721:21080:21433:21451:21627:30054:30090: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:3,LUA_SUMMARY:none X-HE-Tag: snail54_12179a2274d7 X-Filterd-Recvd-Size: 2375 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Jan 2021 08:57:10 +0000 (UTC) Message-ID: <5f01770454d163605406265b1bf316e0452753cf.camel@perches.com> Subject: Re: [PATCH v3 3/5] checkpatch: kconfig: enforce help text indentation From: Joe Perches To: Nicolai Fischer , linux-kernel@vger.kernel.org Cc: apw@canonical.com, akpm@linux-foundation.org, johannes.czekay@fau.de, linux-kernel@i4.cs.fau.de Date: Tue, 05 Jan 2021 00:57:09 -0800 In-Reply-To: <0e8754d14cb5624704159ba85b18f8a6bb703b27.camel@perches.com> References: <20201226140511.662368-1-nicolai.fischer@fau.de> <20210103075015.23946-1-nicolai.fischer@fau.de> <20210103075015.23946-4-nicolai.fischer@fau.de> <0e8754d14cb5624704159ba85b18f8a6bb703b27.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-01-04 at 14:09 -0800, Joe Perches wrote: > On Sun, 2021-01-03 at 08:50 +0100, Nicolai Fischer wrote: > > Adds a new warning in case the indentation level of the > > first line of a Kconfig help message is not at least two spaces > > higher than the keyword itself. > > Blank lines between the message and the help keyword > > are ignored. > > > > Co-developed-by: Johannes Czekay > > Signed-off-by: Johannes Czekay > > Signed-off-by: Nicolai Fischer > > --- > > > > Now matches indentation of two or more spaces, instead of exactly two. > > No, this should match exactly 2 and warn on any other use. To clarify, only the first line after the help keyword needs to have a 2 space indent more than the help keyword and the help block may start with Kconfig keywords. Subsequent help block lines may have more than 2 chars. The help block line count should end when the indent is less than the help keyword indent and is a non-blank line. This should be valid: help line 1 -- reason 1 -- reason 2 continuation -- reason 3 But this should warn only on line 1: help line 1 has a 3 space indent -- reason 1 -- reason 2 continuation -- reason 3