Nucleus handler tools β€Ί Docs β€Ί Checks

A line that does nothing

Warningno-unused-expressionsA general JavaScript mistake (ESLint's no-unused-expressions) Β· Probably wrong: Nucleus runs it, but not the way you meant.

Why it matters

This line computes something and throws the result away: it does nothing. A missing assignment or call, or a statement split over two lines?

Example

βœ— Wrong

var a = 1;
a == 2;

βœ“ Right

var a = 1;
a = 2;

How to fix it

Assign or call what you meant; check for a line split in two.

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-unused-expressions": "off" } in your settings. Notepad++: Plugins β€Ί Nucleus Co-op handlers β€Ί Settings. Command line: ncdev lint --rule no-unused-expressions=off. Other editors: the lint.rules setting of ncdev lsp.

Is this right?
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop