Skip to content

Linter fails to catch undefined objects and attributes in the code #682

@yegor256

Description

@yegor256

This is my code:

[n] > app
  QQ.io.stdout > @
    QQ.txt.sprintf *1
      "Hello, %s!"
      foo

Here, foo is not defined in the app object and there is no @ attribute in app. Obviously, it's a wrong reference to an object. Lints can catch this, but currently they don't. I'm getting this, in runtime:

Couldn't find object 'Φ.org.eolang.foo' because there's no class or package 'EOorg.EOeolang.EOfoo'

Let's create a lint for this.

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