[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Misra rule 10.3 violations report script
- To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
- Date: Thu, 28 Sep 2023 08:34:45 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eMVqCK0kXiVmGMX2a2a40fHhjkIkMdApTYGC+hUUqVY=; b=TewFImOj8zZIUqTXZCmW4dkgCXREV6qbgeSUaZIVFxoOc0dGVq8uhbEc+ooUuEYJsabwrDyX7YnkcgppiosFrNFiDWeCS0DoKZdgb1/BlSdDodbmuidIhPKhDevtI+ZwuHiDVrSVSvIsHh5G51bdBFkIJImbOg6qFcs9BRD/g1Wm43avDuRQZ8ueUUigW1rKRK8iybKQZtb39xde1LJ0PF/67JilDHf+xZ4tOwOTVYHWDMAzb0B8zwk9cPN7DUJJuH8UeLgrP9Cb670Hk01yY40pBJpaU2fSNsfmndBYcs2bC+SOJb4pER+iubA+12JRU4ngap0QRkAXeEa4+1bUnw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hPcwlowuKmfQ6qzDDooy44A2veC9jiWOZFM8CeV7CTNiNlI83vNTugTC9yjbLe7pwjVPkJz80rjEv91ogwCwj3wyROKs3DTKik+ZQ0gQNCJTv0ajPxPRmhwCImSpLvl0lUJvF0VpTbv7k/0NKFapp+kEHk/35EihocJWtlCTz3LxlE0e7bmd6+6LetZRSVAUm7ggIivPGuZ6u68Cuzv+eRdkdFAHKDq6pBHE+I2ikfd9cZmVPJCVswN9fNJz+znVGdyq2o5sYLRULltnj36i11IjUNHNPLSmAuRWfwHcYyRKNRiV0ltSeK0VSNyiun+9NF3C6Qh0LKZFC0FNSgpoDQ==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Delivery-date: Thu, 28 Sep 2023 08:35:28 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHZ8eaivorSHG23DU+9+Dq6J0nkFw==
- Thread-topic: Misra rule 10.3 violations report script
Hi all,
In the last MISRA meeting Stefano told me about the Rule 10.3 and that we have
a lot of violations,
but GCC has a way to list them as written in rules.rst.
So the issue was just that we have a lot of violations, most of them coming
from headers and the
Developer might feel a bit lost since the number is very high, so I’ve
developed this script to take
the GCC build log and create a list of unique occurrences of the violations
sorted in descending
order, so that who has a bit of time can try to fix some of those and maybe can
start from the top
of the list to fix as many as possible occurrences.
I attach the script as patch file.
Cheers,
Luca
Attachment:
0001-Script-to-analyse-the-rule-10.3-GCC-output.patch
Description: 0001-Script-to-analyse-the-rule-10.3-GCC-output.patch
|