Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Similar to #44

Open
Steve-Mcl opened this issue Jun 21, 2024 · 0 comments
Open

Similar to #44

Steve-Mcl opened this issue Jun 21, 2024 · 0 comments

Comments

@Steve-Mcl
Copy link

Current Behavior

Similar to #37 linter does not recognise variables generated by the function nodes imports

image

Expected Behavior

linter should include any variables created in the function nodes imports

Steps To Reproduce

  • Add a function node
  • Add os to imports on setup tab
  • Add code msg.payload = os.freemem()

Example flow

[
    {
        "id": "3dfba4cb62aa0313",
        "type": "function",
        "z": "6f432348c57a2fda",
        "name": "get free memory",
        "func": "msg.payload = os.freemem()\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [
            {
                "var": "os",
                "module": "os"
            }
        ],
        "x": 620,
        "y": 340,
        "wires": [
            [
                "888416a8bb047df7"
            ]
        ]
    }
]

Environment

  • nrlint version:
  • Node-RED version:
  • Node.js version:
  • npm version:
  • Platform/OS:
  • Browser:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant