google / google/go-jsonnet

Linter: warn about scoping rules in object and object comprehensions

Open
#386 0 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

It may feel weird for many users that even though object field names etc. are syntactically inside the object, the variable scope is actually outside it. Perhaps we could issue a warning when there is an object local with the name coinciding with the name of variable used in object fields or comprehension expressions.

See: #385

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.