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

RE: Xen Coding style and clang-format


  • To: Julien Grall <julien@xxxxxxx>, Anastasiia Lukianenko <Anastasiia_Lukianenko@xxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "George.Dunlap@xxxxxxxxxx" <George.Dunlap@xxxxxxxxxx>
  • From: Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>
  • Date: Fri, 16 Oct 2020 11:37:20 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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-SenderADCheck; bh=p7bwsr9BNPpt1G2ulhrUtkoAEtVHKgN9w0+u0WfepFs=; b=dkUyRjmxKXlulgokjoKUGLH4T0P2/TKdnkaVH7FgH9xGjUPuKahprGPPoqngA6avjrsYtkFfECv0mDTuSULLvzBE5MvxVtivijiflwX/y0QKgCuZhQ70NkSFbMiiLChyU9yQYCdWvpY5UhAOPcAvS0O7fWq5X8qOrjBvpSobYDikFX0jfT81+LpjOjcqxsPLpzKHEXNIsKCJFFlbhOgva7kzqrhvwLAo9PNYovlFoXA3CfCeHNFJj/YOxHdvrcla9+w8EnXY+ICry/sCiB5ulRyd8UH6jCqxYhSqS7Eo0TlcQ8onq5P5HhnrArTtzwNsaVQwTddr/GtESjIZMOzfMw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZTtq7kWuIG3n3fZf5b+Ew/f5NRDikfttnFrxaZHhaYZeQ/iEIX8lJkelb3b3HrxeWG5uKrXMSuzELBTSwwplQ5dHQW4Yqb8t1nqtMtGu6EkCGwNMQVJMhyHIiOpioc8rgeYtg9j0faQFmlXLZwuJvwwmVoH8eYB4nvLseBnpeoR95gc/WY8xr43157VWNqcULCcvZHLEZgFzckLHCfRKEwciJeAji1iyPjn8MGvf2GsG2TuqCqBviRsxVf9R/R4schm/iCb4TgnYpf1X/PT+IybR9JHDdaLTs6+RH4KQL268WDDKqzYkW35Vy/ZZft5JM/H0ShIAnpXZ80EL7/JHYA==
  • Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=epam.com;
  • Cc: "vicooodin@xxxxxxxxx" <vicooodin@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "committers@xxxxxxxxxxxxxx" <committers@xxxxxxxxxxxxxx>, "viktor.mitin.19@xxxxxxxxx" <viktor.mitin.19@xxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 16 Oct 2020 11:37:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWlwq4nKYEhMN38U+xmvwRsutq+amA8joAgAAHUgCAAXyKAIAAENkAgAlxpgCACF7sgIABM44AgASIOQCAAAt9gIAAE8Bw
  • Thread-topic: Xen Coding style and clang-format

Hi,

-----Original Message-----
From: Julien Grall <julien@xxxxxxx> 
Sent: пятница, 16 октября 2020 г. 13:24
To: Anastasiia Lukianenko <Anastasiia_Lukianenko@xxxxxxxx>; jbeulich@xxxxxxxx; 
George.Dunlap@xxxxxxxxxx
Cc: Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>; vicooodin@xxxxxxxxx; 
xen-devel@xxxxxxxxxxxxxxxxxxxx; committers@xxxxxxxxxxxxxx; 
viktor.mitin.19@xxxxxxxxx; Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
Subject: Re: Xen Coding style and clang-format

> Hi,
>
> On 16/10/2020 10:42, Anastasiia Lukianenko wrote:
> > Thanks for your advices, which helped me improve the checker. I
> > understand that there are still some disagreements about the
> > formatting, but as I said before, the checker cannot be very flexible
> > and take into account all the author's ideas.
>
> I am not sure what you refer by "author's ideas" here. The checker 
> should follow a coding style (Xen or a modified version):
>     - Anything not following the coding style should be considered as 
> invalid.
>     - Anything not written in the coding style should be left 
> untouched/uncommented by the checker.
>

Agree

> > I suggest using the
> > checker not as a mandatory check, but as an indication to the author of
> > possible formatting errors that he can correct or ignore.
>
> I can understand that short term we would want to make it optional so 
> either the coding style or the checker can be tuned. But I don't think 
> this is an ideal situation to be in long term.
>
> The goal of the checker is to automatically verify the coding style and 
> get it consistent across Xen. If we make it optional or it is 
> "unreliable", then we lose the two benefits and possibly increase the 
> contributor frustration as the checker would say A but we need B.
>
> Therefore, we need to make sure the checker and the coding style match. 
> I don't have any opinions on the approach to achieve that.

Of the list of remaining issues from Anastasiia, looks like only items 5
and 6 are conform to official Xen coding style. As for remainning ones,
I would like to suggest disabling those that are controversial (items 1,
2, 4, 8, 9, 10). Maybe we want to have further discussion on refining 
coding style, we can use these as starting point. If we are open to
extending style now, I would suggest to add rules that seem to be
meaningful (items 3, 7) and keep them in checker.

-- Artem

 


Rackspace

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