node-red / nrlint

Node-RED Flow Linter
Apache License 2.0
36 stars 15 forks source link

nrlint not working (raises no warnings/erros) #43

Closed protonmw closed 5 months ago

protonmw commented 7 months ago

Current Behavior

lint tab is available, settings has been made none of the rule violations are reported

for more details see here: https://discourse.nodered.org/t/nrlint-install-error/84731/9?u=protonmw

Expected Behavior

No response

Steps To Reproduce

No response

Example flow

[
    {
        "id": "e6044d460bd8f44d",
        "type": "inject",
        "z": "a86e5a108d2f7b13",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 1000,
        "y": 1740,
        "wires": [
            [
                "52e62976f14f7ba3"
            ]
        ]
    },
    {
        "id": "52e62976f14f7ba3",
        "type": "change",
        "z": "a86e5a108d2f7b13",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1220,
        "y": 1740,
        "wires": [
            [
                "ede84a784d16fbf0"
            ]
        ]
    },
    {
        "id": "ede84a784d16fbf0",
        "type": "change",
        "z": "a86e5a108d2f7b13",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1220,
        "y": 1800,
        "wires": [
            [
                "52e62976f14f7ba3"
            ]
        ]
    }
]

Environment

protonmw commented 6 months ago

Problem is caused by a function node with "\r" in code. See here: https://discourse.nodered.org/t/nrlint-install-error/84731/24?u=protonmw

protonmw commented 5 months ago

SOLVED with V1.2.0