Re: State of Yocto styleguide and script

Khem Raj

On 3/13/23 7:20 AM, VIVAVIS AG via wrote:
I'm wondering whether the styleguide,
meta-openembedded/contrib/ or none of them is the source of
truth for writing a good recipe.
E.g., if you run, 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/ 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
providing another ruleset for the new linter.
So, my question to the Yocto maintainers is, what is the current state of the styleguide
and Are there plans to synchronize them? is still the linter of choice but as you have noted it has been lacking on certain areas and wiki should be updated to match what it produces. It does need some TLC and patches are welcome.

Thanks for clarification.
Carsten Stelling

Join { to automatically receive all group messages.