Re: [PATCH] docs: Document camelCase preference for XML elements and attributes

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

 



On Thu, Oct 15, 2020 at 11:34:39AM +0200, Michal Privoznik wrote:
> Recently I've merged a patch that used hyphens in an attribute
> name. I fixed it later, but turned out we don't document our
> preference which is camelCase.
> 
> Suggested-by: Erik Skultety <eskultet@xxxxxxxxxx>
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
> 
> I'm not sure this is the correct place to put this, suggestions welcome.
> 
>  docs/api_extension.html.in | 6 ++++++
>  1 file changed, 6 insertions(+)

I perceive api_extension as an overall guideline what a patch series should
look like if you plan on introducing a new API/feature. I still think that XML
attribute naming counts as style convention just like the if-else block
formatting, spacing, indentation, etc.

Erik




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux