Wonder-Technology/Wonder-Editor

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

Summary

Maintainability
A
2 hrs
Test Coverage

Function handleBlurAction has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

function handleBlurAction(state, param, canBeZero, languageType) {
  var onBlurFunc = param[1];
  var onChangeFunc = param[0];
  var match = state[/* inputValue */0];
  var exit = 0;
Severity: Major
Found in lib/es6_global/src/core/atom_component/floatInput/FloatInput.js - About 2 hrs to fix

    File FloatInput.js has 254 lines of code (exceeds 250 allowed). Consider refactoring.
    Confirmed

    
    
    import * as Block from "../../../../../../node_modules/bs-platform/lib/es6/block.js";
    import * as Curry from "../../../../../../node_modules/bs-platform/lib/es6/curry.js";
    import * as React from "react";
    Severity: Minor
    Found in lib/es6_global/src/core/atom_component/floatInput/FloatInput.js - About 2 hrs to fix

      Function handleChangeAction has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

      function handleChangeAction(state, onChangeFunc, canBeZero, value) {
        if (value !== undefined) {
          var value$1 = value;
          switch (value$1) {
            case "" : 
      Severity: Minor
      Found in lib/es6_global/src/core/atom_component/floatInput/FloatInput.js - About 1 hr to fix

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

        function make($staropt$star, $staropt$star$1, defaultValue, label, onChange, onBlur, title, _children) {
        Severity: Major
        Found in lib/es6_global/src/core/atom_component/floatInput/FloatInput.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status