Nucleus handler tools βΊ Docs βΊ Checks
A value compared with itself
Why it matters
Comparing something with itself is always the same; probably a typo.
Example
β Wrong
var a = 1;
if (a == a) {
}β Right
var a = 1;
var b = 2;
if (a == b) {
}How to fix it
Compare with the other value you meant.
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-self-compare": "off" } in your settings. Notepad++: Plugins βΊ Nucleus Co-op handlers βΊ Settings. Command line: ncdev lint --rule no-self-compare=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong