WardenSlayer / Mousehunt-UserScripts

Scripts for the game Mousehunt
https://wardenslayer.github.io/Mousehunt-UserScripts/
MIT License
3 stars 1 forks source link

Fix 10 Complexity, 4 Maintainability issues in MH Timers Plus.js #53

Closed WardenSlayer closed 1 year ago

WardenSlayer commented 1 year ago

CodeFactor found multiple issues:

Very Complex Method

Complex Code

This number literal will lose precision at runtime.

This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain.

'spillLevel' is defined but never used.

'myTimer' is assigned a value but never used.

Complex Method