p632-sp-2016/eDocLite

View on GitHub

Showing 4 of 6 total issues

File ToolBoxComponents.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Created by parikhv on 3/14/16.
 */
import React from 'react';
import { Row, FormControls, Input, Button, ButtonToolbar, Col } from 'react-bootstrap';
Severity: Minor
Found in src/components/ToolBoxComponents.js - About 4 hrs to fix

    Function render has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        render() {
            const {fields, handleSubmit, dispatch, resetForm, selectedComponent, selectedElement} = this.props;
    
            if(selectedComponent != undefined){
    
    
    Severity: Minor
    Found in src/components/EditForm.js - About 1 hr to fix

      Function RadioButton has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const RadioButton = (props) => {
          return (
              <div>
                  {props.elements.map((obj, objKey) => {
                      const selectedWrapperClassVal = obj.alignment.value;
      Severity: Minor
      Found in src/components/ToolBoxComponents.js - About 1 hr to fix

        Function Checkbox has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const Checkbox = (props) => {
        
            return (
                <div>
                    {props.elements.map((obj, objKey) => {
        Severity: Minor
        Found in src/components/ToolBoxComponents.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language