Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oelint.vars.multilineident matches not fully Yocto style guide #613

Open
jo-so opened this issue Sep 17, 2024 · 1 comment
Open

oelint.vars.multilineident matches not fully Yocto style guide #613

jo-so opened this issue Sep 17, 2024 · 1 comment

Comments

@jo-so
Copy link

jo-so commented Sep 17, 2024

While https://github.com/priv-kweihmann/oelint-adv/blob/6.0.0/docs/wiki/oelint.vars.multilineident.md says:

A = "\
    a \
    b \
"

https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#variable-formatting says

FOO = "this line is \
       long \
       "

The first aligns at " and the second at the character after ". Which one is right?

@priv-kweihmann
Copy link
Owner

https://www.openembedded.org/index.php?title=Styleguide&oldid=10281 mentions even more 😁.

I personally like the linter variant much more in terms of readability, but the checks do work on both afaik (and it was in line with the style guide at that time)

I am not sure why that was changed in the current style guide (there is sadly not much transparency and reasoning available).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants