bbc/psammead

View on GitHub
packages/components/psammead-navigation/src/index.stories.jsx

Summary

Maintainability
C
1 day
Test Coverage

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

import React from 'react';
import { storiesOf } from '@storybook/react';
import styled from '@emotion/styled';
import {
  color,
Severity: Minor
Found in packages/components/psammead-navigation/src/index.stories.jsx - About 7 hrs to fix

    Function animationStory has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const animationStory = (
      dir,
      script,
      service,
      brandBackgroundColour,
    Severity: Minor
    Found in packages/components/psammead-navigation/src/index.stories.jsx - About 1 hr to fix

      Function inputs has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const inputs = () => {
        // capitalization is only for presentation purpose on the knob
        const options = Object.keys(svgs)
          .filter(key => key !== 'BBC_BLOCKS')
          .map(key => key.charAt(0).toUpperCase() + key.slice(1));
      Severity: Minor
      Found in packages/components/psammead-navigation/src/index.stories.jsx - About 1 hr to fix

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

        const getBrand = () => {
          const {
            productInput,
            serviceLocalisedNameInput,
            svgHeightInput,
        Severity: Minor
        Found in packages/components/psammead-navigation/src/index.stories.jsx - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status