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

Re: External file structure


  • To: Luca Fancellu <Luca.Fancellu@xxxxxxx>, "fusa-sig@xxxxxxxxxxxxxxxxxxxx" <fusa-sig@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 23 Jan 2023 12:01:13 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=Z+R5/FPDbKxgShi2ltVFmi/VOtqRNfP7A8LNN9yazj4=; b=S0YW5SKCl61Vp2DqVAsIiXi1nDlJ0QJ0O8hUn28uEkHZ44ziRXUBMrYV7z/KVhxk2wOKrji1LwHq7h/26Ab5C47NaSg3zlc9wu4NeFqGCpJojSPhZXDo/9KlqfwlciQcOFR+xCMvSm54kSOYAZdaw7h729EmOnPt00ebaywA+VIiyFOoMtY0Vxq25aSfIrZyyjvqa+PoYrVR8Icr0PmLcC9nyH4wJX6mVYafa1DBxy/ct9RYBhm8uVol2vbzv44XBHoWLdoFc07+6xzRmGJEnyXg3XDdPya/0NGc28JEjW+xqaLisrsxKmygg3OY3K9dASxmZYJT9/4cXVSrH+j3eg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WFNvL5f9PW6yTvAZubYzqVz9Rk1NDwlHF+THDTiH6RmE5mFqlLhYEH/ImG1qPsVdM6Rqpjge+XWaYu++329Zz9pFtXUMi+YzVXEObt01B3V5iIcLhjlt/FZnjU7k2k0Yw8+jJA9FyBhnogYsivEk8totetxjWJopsREfFGAo1/LLpfOubEL7/idg2LDrYiEaL8aJle6uqyIlgYvLlvqVeOX98+JZ2o00ATrJYX1j9zz7qBPxbuDtDfh/Y3I9kMUA1Q7gkJn82rdwRGEWGpSueX2oIEo57QCpmNpYeBBlva1EKfNhaqiqzoUcVZfkNYEne53KivkFQLLTcfi8Y3Uzwg==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Mon, 23 Jan 2023 16:07:54 +0000
  • List-id: This is a discussion list for members of the Xen Project FuSa SIG <fusa-sig.lists.xenproject.org>

Hi Luca,

On 23/01/2023 11:28, Luca Fancellu wrote:
> 
> 
> Hi all,
> 
> I’m starting a proposal for the external files that needs to be removed from 
> the MISRA scan,
> the work was originally started by Michal here:
> https://patchwork.kernel.org/project/xen-devel/patch/20221116092032.4423-1-michal.orzel@xxxxxxx/
Thanks for taking this on.

> so I started by that thread, the aim of this work is to have an initial 
> format to start as soon as possible to
> exclude the external files from the MISRA scan.
> 
> I think we can use the JSON format because it’s easy to integrate it with 
> python and it’s easy to add/remove
+1 for JSON format.

> fields from the structure without interfering with the other elements during 
> time, so we can define a structure
> now but if in the future we see the needs for additional field, we can just 
> add them without changes to the
> analysis script.
> 
> In my opinion many of these fields can be left empty in a first push, to let 
> the script exclude the files and during
> time with the contributions of the community we can add the missing 
> informations.
> I think it’s easier for the community to pick an entry, do some research to 
> fill the gaps and push, instead to wait
> until having all the informations before adding the entry.
> 
> 
> This is my first though for the fields, let me know yours:
> 
> docs/misra/external-files.json:
> {
>   "version": "1.0”,
>   "content": [
>     {
>       "path": "relative/path/from/xen/“,
>       "diverged": false,
>       "backport": "Y/N/?",
These two fields are more for the community/maintainers rather than for MISRA.
The reason is that we cannot deduct from that whether to exclude a file from 
MISRA/code checkers or not.
So we would need to have a separate field e.g. "exclude_from_checkers": 
"true/false".
This would also mean that we do not accept changes (normal changes, no 
backports) for such files,
e.g. to fix MISRA, coding style, etc.

>       "origin_project": "URL to origin project",
>       "origin_path": "relative path in the original project",
>       "origin_revision": "revision in original project”
>     }
>   ]
> }
> 
> 
> Maybe, documentation for this file and the fields can reside in 
> docs/misra/documenting-violations.rst, or
I think a separate file would be needed because such json table would not only 
be for MISRA benefit.

> in a separate rst file in that folder.
> 
> Cheers,
> Luca
> 

~Michal



 


Rackspace

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