Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 596 Bytes

oelint.vars.multilineident.md

File metadata and controls

38 lines (27 loc) · 596 Bytes

oelint.vars.multilineident

severity: info

Example

On every multiline variable assignment

A = "\
    a \
b \
"

Why is this bad?

For better readability the Yocto project style guide suggests to use a common indent (minimum 4 spaces) matching the first " on the starting line

Ways to fix it

A = "\
    a \
    b \
"

a valid alternative is

A = "a \
     b \
"

The --fix will determine the style used automatically based on the content of the first line