Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1253869imm; Fri, 13 Jul 2018 14:47:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdjgOHJUbW9/4ZFfndXTihe3or7pQ1ak0fCCWMRX2NCJfllJkq9Sa5PWoyYVqiHuHONQ2m9 X-Received: by 2002:a17:902:b81:: with SMTP id 1-v6mr8069064plr.164.1531518463565; Fri, 13 Jul 2018 14:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531518463; cv=none; d=google.com; s=arc-20160816; b=lk13kHmZIFHMl/r0kouNyYsTp5HdKVDwSC1pJWSSE/0MDlcCVJbJPBvgkEUMKV0S0D kN0MHi0SvQqgMlzLoKh+4hPROuBJYBPr1jdk+P+9dgCqDkXG3eZJjDH4BXu9zHvfr4gc /3M5abOdKyQKp8VdG22RC/rgBivYBmB1n3p46NzFgES0zsdw87jaQu0IVbi7PIBTaahE CoxF3UIVItKUgYughJWhzMoLnqsjnwVr5w0zIOWyX40aU49vkJiyDGouy9+vN8EKQTFY IkMjLVhT2D8ObXbb9AIzDGFaBdHrA8zTTsNyyd/cJcyqkIo87F5//WK3nwfS+rXqdBwC 4Ysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=l4+4BlEDSpe0Y3GLwPEicVM696++7NTj8TnE3/n+aAU=; b=gHrIKqtMitskXD/1IqMUsXL6mmL8byZodJ3M1+5P0+5Q94MO04iKhUDt21fJsetgIz eZFS739xVQLdWA8m2i71Fop2HU+Y3yjWh4KM6h9+PZo8k7y0Zzgor/+u7gWIE9+BeaMN cxg45yYrgfbL81smVIjtfjSqN8Rqyc+U0ToIJW2OXwa8XFi3LzkLFEvf2Wfkv3kIUNY5 9sUgRX7Ocen7bc9jWzppC8XyX5qBodcQ6a/5L1oVCuyqW7e4QeL4NkCKKs5DJBcEAZig KAXWlwd+yMmy1KE7lcFMADWFTN5xmqvVvxGKY/tnd9u7Ph1eaAjyrex+TBBbm84iFQZx C3gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j61-v6si24911033plb.68.2018.07.13.14.47.27; Fri, 13 Jul 2018 14:47:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729645AbeGMWDU (ORCPT + 99 others); Fri, 13 Jul 2018 18:03:20 -0400 Received: from smtprelay0074.hostedemail.com ([216.40.44.74]:39666 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbeGMWDU (ORCPT ); Fri, 13 Jul 2018 18:03:20 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 9C91B180171B8; Fri, 13 Jul 2018 21:46:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:4321:5007:6119:7903:10004:10400:10848:11026:11232:11473:11658:11914:12296:12438:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:14777:21060:21080:21433:21451:21627:30022:30034:30054:30070:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: wrist30_3bddf3d52d03a X-Filterd-Recvd-Size: 2020 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Fri, 13 Jul 2018 21:46:51 +0000 (UTC) Message-ID: <6799952fbd3639c764c112bde961b5e00270a52d.camel@perches.com> Subject: Re: [PATCH] checkpatch: Require commit text and warn on long commit text lines From: Joe Perches To: Prakruthi Deepak Heragu , apw@canonical.com Cc: linux-kernel@vger.kernel.org, tsoni@codeaurora.org, bryanh@codeaurora.org, ckadabi@codeaurora.org, David Keitel Date: Fri, 13 Jul 2018 14:46:50 -0700 In-Reply-To: <1531518027-13318-1-git-send-email-pheragu@codeaurora.org> References: <1531518027-13318-1-git-send-email-pheragu@codeaurora.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-07-13 at 14:40 -0700, Prakruthi Deepak Heragu wrote: > Commit text is almost always necessary to explain why a change is needed. This bit seems sensible, but perhaps it should just count the number of lines after the end of email headers and before any Signed-off-by:/Signature line > Also, warn on commit text lines longer than 75 characters. The commit text > are indented and may wrap on a terminal if they are longer than 75 > characters. This is already exists via # Check for line lengths > 75 in commit log, warn once if ($in_commit_log && !$commit_log_long_line && length($line) > 75 && > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -14,6 +14,13 @@ use File::Basename; > use Cwd 'abs_path'; > use Term::ANSIColor qw(:constants); > > +use constant BEFORE_SHORTTEXT => 0; > +use constant IN_SHORTTEXT_BLANKLINE => 1; > +use constant IN_SHORTTEXT => 2; > +use constant AFTER_SHORTTEXT => 3; > +use constant CHECK_NEXT_SHORTTEXT => 4; > +use constant SHORTTEXT_LIMIT => 75; probably overly complicated