Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4520659rwb; Sun, 4 Dec 2022 03:41:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4X20jiT0pNVMvt6K2mUEL0rWKDBSJrkju5s34DH/gQHd1TgtKdz/f0lDj1wrtvN5dQlzRH X-Received: by 2002:a63:db0a:0:b0:477:cc21:5766 with SMTP id e10-20020a63db0a000000b00477cc215766mr42659327pgg.524.1670154069503; Sun, 04 Dec 2022 03:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670154069; cv=none; d=google.com; s=arc-20160816; b=uKIyC8MhXxPYpNtZLYv4ORTXPlH+hhYVn/kqH54VmgWE5TXb3iwfR8Q48UzvjtVVVk DhUr4ZwK3eZUZyl5hMKRhMq+KKG25ACd/AzCX3YFMzDVjQ7NntgJhA+c+Tk/BZEhVzO5 U/a2x7+8sgMsS7dzi59aclA4HEFLAvvKF1QEwAL5bTgWvo1ZlXhhVvMvkLROmm8e3KIu yeb2DjAO94630lb69k0ii4sw/ENu+LbHIBvFckudcWxQ9x3DeLFc7O8JN0bJLAy9M5N+ qI7X7mw6ekLW/DVRv8zbVJLiqugbVUOyViN3sNKIupwJzovXKQcL1Pdhv/zmrk7Ym9Fq aRdA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=PSu/JUPwBA5ekcWHo/JN8+rovI3D6D3wtlXUFyeeqHo=; b=ktsyxPEQ+nrvWKquOMBSz0v+RWCure6lMzyW0HCBCiJsz8DdXjtsrOjj46AmFMM3y6 Bq7MykaNmCaH0+k1ZZ+KxB3l6CVd3WhF+CugS/u4uNrsYWdnbf2rJQDnYXyvgJN3JzC6 CF8nNzImPJhYZwgT4tQH6Kb4UMzvQIW87RejzIUsqjrqhCIHRmV4pTleBAxilTMoXCn9 OtzKGigUQMM9C/XDaZ3Lq8Lh9Vd1ZeVwW8Mz1BfNu5kUNYvwPBGUSpRASR9x2qvhlRlU mYUPYDw+Mx4+nMwsPuWWuNHqaAKYakE0TdQWHoBK4+CrY3lo/tS6/qrrG/OmsGaOLNfG gCZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a170902d40c00b0017f641cac01si10994659ple.27.2022.12.04.03.40.58; Sun, 04 Dec 2022 03:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbiLDLja (ORCPT + 83 others); Sun, 4 Dec 2022 06:39:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbiLDLjC (ORCPT ); Sun, 4 Dec 2022 06:39:02 -0500 X-Greylist: delayed 309 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 04 Dec 2022 03:38:59 PST Received: from blackmesa.kw-serverwartung.de (blackmesa.kw-serverwartung.de [78.46.90.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9057C18353 for ; Sun, 4 Dec 2022 03:38:59 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by blackmesa.kw-serverwartung.de (Postfix) with ESMTP id B5D127B80BE; Sun, 4 Dec 2022 11:33:47 +0000 (UTC) Received: from blackmesa.kw-serverwartung.de ([127.0.0.1]) by localhost (blackmesa.kw-serverwartung.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DsZqioH_2RIr; Sun, 4 Dec 2022 11:33:45 +0000 (UTC) Received: from citadel.fritz.box (i5C74630E.versanet.de [92.116.99.14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by blackmesa.kw-serverwartung.de (Postfix) with ESMTPSA id 410137B81BA; Sun, 4 Dec 2022 11:33:45 +0000 (UTC) From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Thorsten Leemhuis Subject: [PATCH 1/2] feat: checkpatch: error on usage of a Buglink tag in the commit log Date: Sun, 4 Dec 2022 12:33:38 +0100 Message-Id: <66fc52aadd45f0c4178fbc6063615fee163b5a3f.1670152844.git.kai@dev.carbon-project.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Suggested-by: Thorsten Leemhuis Signed-off-by: Kai Wasserbäch --- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 1e5e66ae5a..a6d2ccaa3e 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3248,6 +3248,12 @@ sub process { } } +# check if Bug[lL]ink: or Bugzilla: is used and error + if ($in_commit_log && $line =~ /^\s*(buglink|bugzilla):\s*(.*)/i) { + ERROR("COMMIT_LOG_BAD_BUGLINK", + "Non-standard tag '" . $1 . "' - use 'Link:' instead!\n" . $herecurr); + } + # Check for git id commit length and improperly formed commit descriptions # A correctly formed commit description is: # commit ("Complete commit subject") -- 2.35.1