Skip to content

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

@h1alexbel

Description

@h1alexbel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood-titleThe title was checked and improved by ChatGPThelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions