skratchdot/react-bootstrap-daterangepicker

View on GitHub

Showing 3 of 3 total issues

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

import React, { useState, useRef } from 'react';
import jQuery from 'jquery';
import moment from 'moment';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
Severity: Minor
Found in src/index.stories.js - About 3 hrs to fix

    Function StoryComp has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const StoryComp = () => {
          const changeButtonLabel = text(
            'change button label',
            'change range label'
          );
    Severity: Major
    Found in src/index.stories.js - About 2 hrs to fix

      Function buildOptions has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const buildOptions = () => {
        const body = fs.readFileSync(
          `${__dirname}/../node_modules/bootstrap-daterangepicker/website/index.html`
        );
        const $ = cheerio.load(body);
      Severity: Minor
      Found in scripts/build-options.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language