All of lore.kernel.org
 help / color / mirror / Atom feed
* State of Yocto styleguide and oe-stylize.py script
@ 2023-03-13 14:20 embedded (VIVAVIS AG)
  2023-03-13 17:14 ` [yocto] " Khem Raj
  2023-03-13 17:34 ` Alexander Kanavin
  0 siblings, 2 replies; 6+ messages in thread
From: embedded (VIVAVIS AG) @ 2023-03-13 14:20 UTC (permalink / raw)
  To: yocto@lists.yoctoproject.org

Hi,

I'm wondering whether the styleguide www.openembedded.org/wiki/Styleguide,
meta-openembedded/contrib/oe-stylize.py or none of them is the source of
truth for writing a good recipe.

E.g., if you run oe-stylize.py, the SRCREV variable is placed above SRC_URI,
or RDEPENDS is placed above FILES, which is not what the Wiki documents.
And there are more discrepancies of this type.

Furthermore, the script doesn't know the FILESEXTRAPATHS variable in bbappend files
and moves it to the end of my recipe. Well, this is not decribed in the Wiki, but a look
into append files in meta-openembedded shows, that it is common pactice to put
FILESEXTRAPATHS in the first line of the recipe.

The Wiki has an interesting note and the end: "You can run contrib/oe-stylize.py from
meta-oe on your recipes before submitting them; however it is not necessarily up-to-date
with all current style conventions. This page should be considered the canonical reference."

Furthermore, there's github.com/openembedded/meta-openembedded/pull/465
providing another ruleset for the new linter.

So, my question to the Yocto maintainers is, what is the current state of the styleguide
and oe-stylize.py? Are there plans to synchronize them?

Thanks for clarification.

Carsten Stelling


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-17 21:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13 14:20 State of Yocto styleguide and oe-stylize.py script embedded (VIVAVIS AG)
2023-03-13 17:14 ` [yocto] " Khem Raj
2023-03-13 17:34 ` Alexander Kanavin
2023-03-13 17:59   ` Martin Jansa
2023-03-17 12:51     ` AW: " embedded (VIVAVIS AG)
2023-03-17 21:43       ` Tim Orling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.