Nucleus handler tools › Docs › Checks
Two parameters with the same name
Why it matters
Two parameters with the same name: the second hides the first.
Example
✗ Wrong
function f(a, a) {
return a;
}
f(1, 2);✓ Right
function f(a, b) {
return a + b;
}
f(1, 2);How to fix it
Rename one of the parameters.
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-dupe-args": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule no-dupe-args=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong