Wonder-Technology/Wonder-Editor

View on GitHub
lib/es6_global/src/core/atom_component/floatInput/ThreeFloatInput.js

Summary

Maintainability
A
1 hr
Test Coverage

Function make has 13 arguments (exceeds 4 allowed). Consider refactoring.
Wontfix

function make(uiState, dispatchFunc, label, gameObjectComponent, changeXFunc, changeYFunc, changeZFunc, getDataFunc, blurEventFunc, dragDropFunc, canBeZero, title, _children) {

    Function reducer has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Confirmed

    function reducer(param, param$1, action, state) {
      var dragDropFunc = param$1[2];
      var blurEventFunc = param$1[1];
      var gameObjectComponent = param$1[0];
      var dispatchFunc = param[1];

      Avoid too many return statements within this function.
      Wontfix

              return /* Update */Block.__(0, [/* record */[
                          /* x */state[/* x */0],
                          /* y */state[/* y */1],
                          /* z */action[0]
                        ]]);
      Severity: Major
      Found in lib/es6_global/src/core/atom_component/floatInput/ThreeFloatInput.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Wontfix

                return /* Update */Block.__(0, [/* record */[
                            /* x */state[/* x */0],
                            /* y */action[0],
                            /* z */state[/* z */2]
                          ]]);
        Severity: Major
        Found in lib/es6_global/src/core/atom_component/floatInput/ThreeFloatInput.js - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status