Skip to content

Suggest usage of += over :append #566

@jo-so-nx

Description

@jo-so-nx

The bug report Review and remove unnecessary uses of _prepend/_append says

These postponed/lazy operations should only used when necessary, so +=/=+/.=/=. should be preferred for non-conditional operations.

Maybe this could become a info message.

This somewhat contradicts oelint.vars.appendop, but maybe it's possible to distinguish these cases.

There's currently a patch in discussion: https://lists.openembedded.org/g/openembedded-core/message/198154

Metadata

Metadata

Assignees

No one assigned

    Labels

    New ruleNew rule to be implementedcommunityPatches should be provided by the community

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions