From patchwork Thu Dec 24 12:28:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 10736 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id BF2B2C0F1A for ; Thu, 24 Dec 2020 12:29:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 23371615B2; Thu, 24 Dec 2020 13:29:09 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="L4U2u/Bq"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3447B60526 for ; Thu, 24 Dec 2020 13:29:08 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A0095A1D for ; Thu, 24 Dec 2020 13:29:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608812947; bh=YbiyOR3ad1MlqYuMpW75enseZeW1tJEXYuHsQbiEWdc=; h=From:To:Subject:Date:From; b=L4U2u/BqAYe4LTi7dPrjBnJflxODCTtTXUknbmnDZav7JZHvAWHI3XTmQlHnQUwTL WDczbqsB5PtCFAr6k9qtcTeAPIm4Lq7o5l/JIM+mX+jaCdF1JgXp6pC7HJ3CmuNJ1s P0yKIgb6q6V/qHZKz+qURukjgD7UxOjUYjClKUFw= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Thu, 24 Dec 2020 14:28:47 +0200 Message-Id: <20201224122855.22200-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/8] checkstyle.py: Ensure meson.build is updated when adding header X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This patch series adds a new checker to checkstyle.py to ensure that headers added to the public or internal include directories are accompanied by a corresponding update of meson.build in the same directory. Patches 1/8 to 6/8 are small refactorings and cleanups to prepare for the new featur, 7/8 adds a new type of checkers to check entire commits, and patch 8/8 adds the new feature. Laurent Pinchart (8): utils: checkstyle.py: Drop arguments to super() when possible utils: checkstyle.py: Factor out automatic class registry utils: checkstyle.py: Move commit handling to a separate section utils: checkstyle.py: Make title and files properties of commit class utils: checkstyle.py: Add ability to filter files by status in a commit utils: checkstyle.py: Move diff parsing to Commit class utils: checkstyle.py: Add commit checkers utils: checkstyle.py: Add header add checker utils/checkstyle.py | 295 +++++++++++++++++++++++++++++--------------- 1 file changed, 197 insertions(+), 98 deletions(-)