GladysProject/Gladys

View on GitHub
server/lib/scene/scene.addScene.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function addScene has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addScene(sceneRaw) {
  // deep clone the scene so that we don't modify the same object which will be returned to the client
  const scene = cloneDeep(sceneRaw);
  // first, if the scene actually exist, we cancel all triggers
  this.cancelTriggers(scene.selector);
Severity: Major
Found in server/lib/scene/scene.addScene.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status