Wonder-Technology/Wonder-Editor

View on GitHub
lib/es6_global/src/core/composable_component/mainEditor/composable_component/inspector/utils/InspectorAddComponentUtils.js

Summary

Maintainability
A
1 hr
Test Coverage

Function addComponentByType has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Confirmed

function addComponentByType(type_, currentSceneTreeNode, param) {
  var engineState = param[1];
  var editorState = param[0];
  var exit = 0;
  switch (type_) {

    There are no issues that match your filters.

    Category
    Status