Nucleus handler tools › Docs › Checks

The same option set twice

Warningduplicate-assignmentA Nucleus check · Probably wrong: Nucleus runs it, but not the way you meant.

Why it matters

Only the last value counts, so the first line does nothing. Usually a leftover from copying another handler.

Example

✗ Wrong

Game.MaxPlayers = 4;
Game.MaxPlayers = 8;

✓ Right

Game.MaxPlayers = 8;

How to fix it

Keep the value you mean and delete the other line.

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": { "duplicate-assignment": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule duplicate-assignment=off. Other editors: the lint.rules setting of ncdev lsp.

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop