From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD43DC43467 for ; Thu, 8 Oct 2020 12:48:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F3FA2083B for ; Thu, 8 Oct 2020 12:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730131AbgJHMst (ORCPT ); Thu, 8 Oct 2020 08:48:49 -0400 Received: from smtprelay0207.hostedemail.com ([216.40.44.207]:53024 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729769AbgJHMst (ORCPT ); Thu, 8 Oct 2020 08:48:49 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 3AD37182CF66A; Thu, 8 Oct 2020 12:48:48 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: knee22_4611952271d8 X-Filterd-Recvd-Size: 1565 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Thu, 8 Oct 2020 12:48:47 +0000 (UTC) Message-ID: Subject: Re: checkpatch.pl: REPEATED_WORD: massive false positive in MAINTAINERS From: Joe Perches To: Lukas Bulwahn , Dwaipayan Ray Cc: linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Date: Thu, 08 Oct 2020 05:48:46 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-10-08 at 13:50 +0200, Lukas Bulwahn wrote: > Dear Joe, dear Dwaipayan, > > while maintaining MAINTAINERS, I noticed that the REPEATED_WORD check, > which in general is a great addition to checkpatch.pl, generates a massive > number of warnings due to one specific pattern in the MAINTAINERS file: I didn't actually check if there were many new false positives, but clearly that's one. Maybe exclude the MAINTAINERS file? - if ($rawline =~ /^\+/ || $in_commit_log) { + if (($rawline =~ /^\+/ || $in_commit_log) && $realfile ne "MAINTAINERS") { Maybe add git to the check for "long long"? - next if ($first eq 'long'); + next if ($first =~ /^(?:long|git)$/);