google / google/go-jsonnet

Linter: Warn about mixed `self` and local object name

Open
#397 3 comments 0 reactions 0 assignees View on GitHub
linter
Dominant language
Go
Stars
1.8k
Forks
263
PR merge metrics
No merged PRs in 30d

Description

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 }`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.