Skip to content

Linter: Warn about mixed self and local object name #397

Open
@sparkprime

Description

@sparkprime

Ok: { local mything = self, x: 1, y: mything.x, wrapped: { z: mything.x } }
Not ok: { local mything = self, x: 1, y: self.x, wrapped: { z: mything.x } }
Ok: local obj = { a: obj.sth, b:obj.sth }
Not ok: local obj = { a: obj.sth, b:self.sth }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions