[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Misra rule 10.3 violations report script


  • To: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 29 Sep 2023 07:19:33 +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=IXTzOvv36gkakp5jcYNiOYC1FPCh+BbyaRJzdx4aPWE=; b=QnWHQkMPewro2ZRlhyiilEdidhkORIrhEQtndav/Bh6pERBSsxApIzaDMiwpi4yq2wrURGw3hqdoFNTlY/hY8nYqQp+Tww9UG/d/FRXp67pKmTtSgKv3cQd+dby6/rG2hJVNZi7eiRVCQIgS7zk5/u0j99n858yXm0PYVBc2xYpDzP/MniMAyVk1ZUA7uYnMVWAYWMj1Bbfh9CTyJXr3MUh6guLJ4U73k0MR4aKs3uNeTLPKXc8kfJhYCIMluwhBtnVF6Vrp4or+9AWRv02KG3vnk6Rc413qpJLGQB5qcfypXU1qKW9t2x+n8LrdcX/mDz6YO6F8IX7y7jkB6OUinQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z6HWF2ULgumtXCUxiMlNJFBTVzqhrG23j3iNXiBimOxMXdXFOdJEh/rgDPf7YpXPyGGvEScwnZ+AT1gNOPNHe6jEcW40vV4wX2JTblD5f5zI1/oaBep5JVkaJPIgSt8Y014eYc4GM+Dh3mgYzi4Y7BYBzBdhFHzZ4Nf1pboFzoYpkgQ5SFWXQK3x3JMIkqAfDGPlbyZZBDlCvGfwHvDMd2CeprO7CxOyREmqotD50FhG1VKOVrS45PHTc4M1v+qzqPim/Bjxe7RrKqQVpVe2Wj1IxBu7kTeLEWriecHkGboOzAzl9vBRx65d/0/qIDT5LZZ8HxWELpzewEHIP8B6DQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, 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: Fri, 29 Sep 2023 07:20:22 +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: AQHZ8eai6IW78bNFI0CROv/LSYbjorAwjQwAgADZrQA=
  • Thread-topic: Misra rule 10.3 violations report script

> Hi Luca,

Hi Ayan,

>> 
>> 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.
> 
> This is an excellent script to see the violations in a neat way. For eg, I 
> see this
> 
> arch/arm/domain_build.c:3883:28 (1)
> arch/arm/domain_build.c:3910:36 (1)
> ./include/xen/pfn.h:6:23 (1)
> ./include/xen/macros.h:4:40 (1)
> arch/arm/setup.c:221:10 (1)
> arch/arm/setup.c:227:59 (1)
> 
> I think once in a while, we have been approached by newbies wanting to 
> contribute to Xen project.
> 
> For eg "Beginner looking to contribute to project in archived list"
> 
> Sometimes people reach out individually as well.
> 
> Do you have such similar tasks (like this) within or beyond the scope of 
> MISRA which will require some basic programming skills and is a great first 
> step to learn and contribute to Xen project ?
> 
> This can be things which students/folks can contribute on an ad-hoc basis.

Yes indeed, these are the kind of fixes that could be handled by beginners 
contributors,
given the amount of them we need some help for sure!


> 
> I can work with Kelly to see if we can put them in a wiki page.
> 
> I could see https://wiki.xenproject.org/wiki/Outreach_Program_Projects , but 
> don't know if it is up to date.


Sure we can sync with Kelly to see what we can do!

Cheers,
Luca

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.