From patchwork Fri Jan 6 10:41:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Fancellu X-Patchwork-Id: 13091264 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CF74C54E76 for ; Fri, 6 Jan 2023 10:41:34 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.472445.732660 (Exim 4.92) (envelope-from ) id 1pDkA7-0007Mi-6G; Fri, 06 Jan 2023 10:41:23 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 472445.732660; Fri, 06 Jan 2023 10:41:23 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pDkA7-0007Ma-3L; Fri, 06 Jan 2023 10:41:23 +0000 Received: by outflank-mailman (input) for mailman id 472445; Fri, 06 Jan 2023 10:41:22 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pDkA6-0007M7-4u for xen-devel@lists.xenproject.org; Fri, 06 Jan 2023 10:41:22 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id a7effac7-8dae-11ed-91b6-6bf2151ebd3b; Fri, 06 Jan 2023 11:41:20 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 638D911FB; Fri, 6 Jan 2023 02:42:01 -0800 (PST) Received: from e125770.cambridge.arm.com (e125770.cambridge.arm.com [10.1.195.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 76EEA3F23F; Fri, 6 Jan 2023 02:41:18 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: a7effac7-8dae-11ed-91b6-6bf2151ebd3b From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: wei.chen@arm.com, Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 0/2] Cppcheck MISRA analysis improvements Date: Fri, 6 Jan 2023 10:41:06 +0000 Message-Id: <20230106104108.14740-1-luca.fancellu@arm.com> X-Mailer: git-send-email 2.17.1 This serie is adding a way to skip the check for some rules that the Xen project has agreed to follow, this is because cppcheck reports too many false-positive on some rules and it would be easier in a first phase to skip the check on them and allow the tool to be mature enough before using it on the specific rules. The serie includes also an improvement for the cppcheck report. Luca Fancellu (2): xen/cppcheck: sort alphabetically cppcheck report entries xen/cppcheck: add parameter to skip given MISRA rules xen/scripts/xen_analysis/cppcheck_analysis.py | 8 +++-- .../xen_analysis/cppcheck_report_utils.py | 2 ++ xen/scripts/xen_analysis/settings.py | 35 +++++++++++-------- xen/tools/convert_misra_doc.py | 28 ++++++++++----- 4 files changed, 48 insertions(+), 25 deletions(-)