Linter: warn about scoping rules in object and object comprehensions
Open
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
Assessment
This issue has not been assessed yet.