Skip to content

redundant-object incorrectly flags object self-reuse in nested formations #639

@h1alexbel

Description

@h1alexbel

Consider such EO snippet:

[] > jeff
  $ > self
  [] > say-hello
    stdout self > @

Here, self was introduced on a purpose, in order to make jeff itself reusable in the say-hello. Thus, self is not redundant. However, redundant-object complains as such:

The object "self" is redundant, consider inline it instead (redundant-object (Single))

We should not complain in this case, I believe

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions