Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1387998pxb; Sun, 21 Feb 2021 23:53:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUE3Pe7UC0yCyJAvMA1XP3qxRfBNNFjlIioEUM1cPZSDeGIY9dA8YRJtzqnrcNyRxomPz9 X-Received: by 2002:a17:906:654d:: with SMTP id u13mr19327350ejn.299.1613980412772; Sun, 21 Feb 2021 23:53:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613980412; cv=none; d=google.com; s=arc-20160816; b=Mna1esIZLAgcI+TxJpvsUs8RfSq7eweecRkeTfqxh5rGqj5oC5wPcf1Au+mhc0z+Rn zdRaP1NiJTkbk09+P+t2YEkNC5BhKwNwhUD+5TtWL2I7HKXMxfc1Xd0kvojG0nLTMUmh yb0akgHGf2G97P3A+tkyAxbDO6KoyhYkBtu2UHNQ7QkFOL0Gicp+VEagS0VSuz3mz2m0 Wjleg7DEvH6RmZLm0Zv3YbfUFhMi+tt9rvrdu2GDoZlkbOSHe2dLx2ZtWoa+x5RsOGA/ OsZ0ll0GtJXYw2J/NU5TI8HcZUQj+gyTZ7zbKd1dL9td3vbRJVtdmRo3E35kRwP/+Hxz /1JQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lRdSl2m/DMw9bKAYBWJVHZp5b5x9JGXOXuV0kEEo+DU=; b=IQMr2Gq7FRW1+BrRt1J41uVnFvFDF7itHJmBLNuKZ6fKZ2+QKbaBM8nkyvbyqNHxTT gSNQxDKw+SPKRtSS0rnW0kUMjZT774n2F5iloPy5R4yEAeseE66DsdQXZYGfvElqPJlH CeGwzIUGVWZoIlYO7/v5uDtMLbGd3TFIDMw71/lkU4BSC4NMjJJoGnhSklz41XHFHCNV QtEATsh9dm+EuEmwXz6yPRzCZxl3bKWrmpP4pwndjgrViC0qcDzf1Jid4Rv4HJBk7DSP C8Ts/I+Fx2G/TbuDxZIewM22n0F0wegyGa3ygx/+W2ImXPNCz8zms4tsq6w8eSMdwCJt SzEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V7GyxQv+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si11668211edg.156.2021.02.21.23.53.10; Sun, 21 Feb 2021 23:53:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V7GyxQv+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbhBVHwn (ORCPT + 99 others); Mon, 22 Feb 2021 02:52:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbhBVHwm (ORCPT ); Mon, 22 Feb 2021 02:52:42 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1714AC061574 for ; Sun, 21 Feb 2021 23:52:02 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id t25so9745872pga.2 for ; Sun, 21 Feb 2021 23:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lRdSl2m/DMw9bKAYBWJVHZp5b5x9JGXOXuV0kEEo+DU=; b=V7GyxQv+4AvJQ6fvEkKee4b+z+sdzaBU7VwJ3OuVYzc/xPDATqo+h+7sikRDqoFqnx nzN09NkHOknF9HZpI/SmcRKsdVLqj6sDI3jtcdwYqqm4zTZ+86fsGerBsanQZ9vo1U2i nJocEX7YK8zCMUN/2qmn5gPG13d7Thj+YdpuANMSfwZPi/guEs5ZKbMq2qt58VbzD6OF MzjQozqZyBKLw3zPiQH1PE9DETFFPZp7dyV9w3G7SKfdFujZ92SeWWy3q7hiWjsJVfac nayaFLfI2iUAmAG6uYqQ8qrtiLYKh4a6iMFyqctv05VEOdOF9FAMTW+rJwzjEO93iuOR sjBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lRdSl2m/DMw9bKAYBWJVHZp5b5x9JGXOXuV0kEEo+DU=; b=dNnU4/0Ghs4wDvbszVlSmSV1qrzzhF+tvmKpcEukU9ILP4/sX1MwGkD6mSzQFImM9C 9ZhETkt54lkNP0NW/wWftk9J/HDsNnFjvTwbWx6ZPgPRQio6cOHlOO+WibNC6Po0fvmU G3qJGINhjlEjChT9p2HbDcB31fC8xBSXVFMFAE2AjWiCkjsH9RWf6ukYOO9q8E1x65S/ B214OY3i/bIFOZEJBbQeEvXtvX8J546L56PxqWKbrKeR+ra9nbBkysZfGdZjq1LqOOMd WvYgQPFbehPKk9djhjW7a4G4nWEJno9GheddV3ul/hc/WZWsDrdplptj7orLKyOenn8W oaUg== X-Gm-Message-State: AOAM532OVHe697oZS8nkocDgyBZHlYrQ9cj92wnqbJk4WeSJ/dVtY/sI Jy1DLi1qZTTicRlwOdHxCfXvZw8YmeD4yg== X-Received: by 2002:aa7:80cc:0:b029:1da:689d:2762 with SMTP id a12-20020aa780cc0000b02901da689d2762mr21072088pfn.3.1613980321393; Sun, 21 Feb 2021 23:52:01 -0800 (PST) Received: from localhost.localdomain ([2405:201:9004:6a36:aa32:eebb:1da7:c90b]) by smtp.gmail.com with ESMTPSA id br2sm2651665pjb.40.2021.02.21.23.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 23:52:00 -0800 (PST) From: Dwaipayan Ray To: joe@perches.com Cc: lukas.bulwahn@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, Dwaipayan Ray Subject: [PATCH v7 0/2] checkpatch: add verbose mode Date: Mon, 22 Feb 2021 13:22:03 +0530 Message-Id: <20210222075205.19834-1-dwaipayanray1@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 -- 2.30.0