intv0id / tgraph

A react component for drawing 3D graphs
https://intv0id.github.io/tgraph
MIT License
4 stars 1 forks source link

Fix 6 Maintainability issues in multiple files #7

Closed intv0id closed 5 years ago

intv0id commented 5 years ago

CodeFactor found multiple issues:

Trailing whitespace

src\tgraph.ts:45 src\optimizer.ts:110

For (... in ...) statements must be filtered with an if statement

src\graphTypes.ts:129-149

Throwing plain strings (not instances of Error) gives no stack traces

src\utils.ts:11

Assignments in conditional expressions are forbidden

src\utils.ts:26

'node' is defined but never used.

examples\main.js:14