objectionary / objectionary/lints
`redundant-object` lint rule fails to recognize object usage above its declaration level
Open
@yegor256 is already working on this.
Since Aug 29, 2026.
bug
good-title
help wanted
- Dominant language
- Java
- Stars
- 14
- Forks
- 39
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 90
Description
Take a look at this EO snippet:
# Bytes as input.
[bts] > bytes-as-input
# Read `size` amount of bytes from `bts`.
[size] > read
((input-block bts --).read size).self > @ # <- usage, doesn't see this
# Bytes-as-input block.
[data buffer] > input-block
buffer > @
$ > self # <- declaration, see this
Currently, redundant-object complains about self, since lint does not see the usage of it, only its declaration.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.