asabaylus/react-command-palette

View on GitHub
src/command-palette.js

Summary

Maintainability
A
2 hrs
Test Coverage

File command-palette.js has 366 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

/* eslint-disable react/jsx-no-bind */
import React from "react";
import ReactModal from "react-modal";
import PropTypes from "prop-types";

Severity: Minor
Found in src/command-palette.js - About 4 hrs to fix

    CommandPalette has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class CommandPalette extends React.Component {
      constructor(props) {
        super(props);
    
        const { defaultInputValue } = this.props;
    Severity: Minor
    Found in src/command-palette.js - About 2 hrs to fix

      Function renderAutoSuggest has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

        renderAutoSuggest() {
          const { suggestions, value, isLoading } = this.state;
          const { theme, getSuggestionValue } = this.props;
          const {
            maxDisplayed,
      Severity: Minor
      Found in src/command-palette.js - About 1 hr to fix

        Function renderModalCommandPalette has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Invalid

          renderModalCommandPalette() {
            const { showModal } = this.state;
            const {
              trigger,
              theme,
        Severity: Minor
        Found in src/command-palette.js - About 1 hr to fix

          Function constructor has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Wontfix

            constructor(props) {
              super(props);
          
              const { defaultInputValue } = this.props;
          
          
          Severity: Minor
          Found in src/command-palette.js - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status