objectionary / objectionary/lints

`redundant-object` lint rule fails to recognize object usage above its declaration level

Open
#640 5 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.