Nucleus handler tools › Docs › Checks
Code that never runs
Why it matters
Nothing after return, throw, break or continue runs.
Example
✗ Wrong
function f() {
return 1;
var x = 2;
}
f();✓ Right
function f() {
var x = 2;
return x;
}
f();How to fix it
Move the code before the return, or remove it.
Turn it off, or change how it shows
Each check can be shown as an error, warning, info or hint, or turned off. VS Code: "splitscreenme.lint.rules": { "no-unreachable": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule no-unreachable=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong