nexxtway/react-rainbow

View on GitHub
src/components/Picklist/index.js

Summary

Maintainability
C
1 day
Test Coverage

File index.js has 368 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable react/sort-comp */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withReduxForm from '../../libs/hocs/withReduxForm';
import RenderIf from '../RenderIf';
Severity: Minor
Found in src/components/Picklist/index.js - About 4 hrs to fix

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

        render() {
            const {
                label: pickListLabel,
                labelAlignment,
                hideLabel,
    Severity: Major
    Found in src/components/Picklist/index.js - About 4 hrs to fix

      Function constructor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          constructor(props) {
              super(props);
              this.inputId = uniqueId('picklist-input');
              this.errorMessageId = uniqueId('error-message');
              this.listboxId = uniqueId('listbox');
      Severity: Minor
      Found in src/components/Picklist/index.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status