fbredius/storybook

View on GitHub

Showing 5,758 of 5,758 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

export const StandardPasswordFailed = {
  ...Standard,
  play: async () => {
    await StandardEmailFilled.play();
    await userEvent.type(screen.getByTestId('password1'), 'asdf');
Severity: Major
Found in examples/react-ts/src/AccountForm.stories.tsx and 1 other location - About 2 hrs to fix
examples/react-ts/src/AccountForm.stories.tsx on lines 64..71

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 79.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const Button: FunctionComponent<Props> = ({ children, type = 'default', onClick }) => {
  return (
    <button type="button" onClick={onClick}>
      {type}: {children}
    </button>
Severity: Major
Found in examples/cra-ts-kitchen-sink/src/components/Button.tsx and 1 other location - About 2 hrs to fix
examples/official-storybook/components/TsButton.tsx on lines 18..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 79.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const Button: FunctionComponent<Props> = ({ children, type = 'default', onClick }) => {
  return (
    <button type="button" onClick={onClick}>
      {type}: {children}
    </button>
Severity: Major
Found in examples/official-storybook/components/TsButton.tsx and 1 other location - About 2 hrs to fix
examples/cra-ts-kitchen-sink/src/components/Button.tsx on lines 27..33

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 79.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

export const VerificationPasssword1 = {
  ...Verification,
  play: async () => {
    await StandardEmailFilled.play();
    await userEvent.type(screen.getByTestId('password1'), 'asdfasdf');
Severity: Major
Found in examples/react-ts/src/AccountForm.stories.tsx and 1 other location - About 2 hrs to fix
examples/react-ts/src/AccountForm.stories.tsx on lines 42..49

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 79.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        resolve: {
          ...baseWebpackConfig.resolve,
          modules: expect.arrayContaining(baseWebpackConfig.resolve.modules),
          // the base resolve.plugins are not kept 🤷‍♂️
          plugins: expect.arrayContaining([
Severity: Major
Found in app/angular/src/server/framework-preset-angular-cli.test.ts and 1 other location - About 2 hrs to fix
app/angular/src/server/framework-preset-angular-cli.test.ts on lines 494..503

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 79.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

File StorybookModule.test.ts has 257 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Component, EventEmitter, Input, NgModule, Output, Type } from '@angular/core';

import { TestBed } from '@angular/core/testing';
import { BrowserModule } from '@angular/platform-browser';
import { BehaviorSubject } from 'rxjs';
Severity: Minor
Found in app/angular/src/client/preview/angular-beta/StorybookModule.test.ts - About 2 hrs to fix

    File enhanceArgTypes.test.ts has 257 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { ArgTypes } from '@storybook/api';
    import { StrictInputType } from '@storybook/csf';
    import { enhanceArgTypes } from './enhanceArgTypes';
    
    expect.addSnapshotSerializer({
    Severity: Minor
    Found in addons/docs/src/frameworks/common/enhanceArgTypes.test.ts - About 2 hrs to fix

      File iframe-webpack.config.ts has 257 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import path from 'path';
      import { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin } from 'webpack';
      // @ts-ignore
      import type { Configuration, RuleSetRule } from '@types/webpack';
      import HtmlWebpackPlugin from 'html-webpack-plugin';
      Severity: Minor
      Found in lib/builder-webpack4/src/preview/iframe-webpack.config.ts - About 2 hrs to fix

        Function addStoriesFromExports has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          addStoriesFromExports(fileName: Path, fileExports: ModuleExports) {
            // if the export haven't changed since last time we added them, this is a no-op
            if (this.csfExports[fileName] === fileExports) {
              return;
            }
        Severity: Major
        Found in lib/client-api/src/StoryStoreFacade.ts - About 2 hrs to fix

          Similar blocks of code found in 5 locations. Consider refactoring.
          Open

              it('should not remove newline characters of multilines description without JSDoc tags', () => {
                const component = createComponent({
                  ...createStringType(x),
                  description: 'onClick description\nis a\nmulti-lines\ndescription',
                });
          Severity: Major
          Found in addons/docs/src/lib/docgen/extractDocgenProps.test.ts and 4 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 137..146
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 159..168
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 170..179
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 181..190

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 5 locations. Consider refactoring.
          Open

              it('should not remove markdown from description with JSDoc tags', () => {
                const component = createComponent({
                  ...createFuncType(x),
                  description: 'onClick *emphasis*, **strong**, `formatted` description.\n@param event',
                });
          Severity: Major
          Found in addons/docs/src/lib/docgen/extractDocgenProps.test.ts and 4 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 137..146
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 148..157
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 159..168
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 170..179

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 5 locations. Consider refactoring.
          Open

              it('should not remove markdown from description without JSDoc tags', () => {
                const component = createComponent({
                  ...createStringType(x),
                  description: 'onClick *emphasis*, **strong**, `formatted` description.',
                });
          Severity: Major
          Found in addons/docs/src/lib/docgen/extractDocgenProps.test.ts and 4 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 137..146
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 148..157
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 159..168
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 181..190

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

            it('removes a leading | if raw union value is used', () => {
              const docgenInfo = createDocgenInfo({
                flowType: {
                  name: 'union',
                  raw: '| "minimum" | "maximum" | UserSize',
          Severity: Major
          Found in addons/docs/src/lib/docgen/flow/createPropDef.test.ts and 2 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/flow/createPropDef.test.ts on lines 306..317
          addons/docs/src/lib/docgen/flow/createPropDef.test.ts on lines 332..343

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 5 locations. Consider refactoring.
          Open

              it('should not remove newline characters of multilines description with JSDoc tags', () => {
                const component = createComponent({
                  ...createFuncType(x),
                  description: 'onClick description\nis a\nmulti-lines\ndescription\n@param event',
                });
          Severity: Major
          Found in addons/docs/src/lib/docgen/extractDocgenProps.test.ts and 4 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 137..146
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 148..157
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 170..179
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 181..190

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 5 locations. Consider refactoring.
          Open

              it('should remove JSDoc tags from the description', () => {
                const component = createComponent({
                  ...createStringType(x),
                  description: 'Hey!\n@param event\nreturns {string}',
                });
          Severity: Major
          Found in addons/docs/src/lib/docgen/extractDocgenProps.test.ts and 4 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 148..157
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 159..168
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 170..179
          addons/docs/src/lib/docgen/extractDocgenProps.test.ts on lines 181..190

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

            it('even removes extra spaces after a leading | if raw union value is used', () => {
              const docgenInfo = createDocgenInfo({
                flowType: {
                  name: 'union',
                  raw: '|     "minimum" | "maximum" | UserSize',
          Severity: Major
          Found in addons/docs/src/lib/docgen/flow/createPropDef.test.ts and 2 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/flow/createPropDef.test.ts on lines 306..317
          addons/docs/src/lib/docgen/flow/createPropDef.test.ts on lines 319..330

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          const Submit = styled(Button)(({ theme, dirty }) => ({
            marginRight: 8,
            backgroundColor: theme.color.secondary,
            color: theme.color.inverseText,
            opacity: dirty ? 1 : 0.6,
          examples/react-ts/src/AccountForm.tsx on lines 540..546

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          const Submit = styled(Button)(({ theme, dirty }) => ({
            marginRight: 8,
            backgroundColor: theme.color.secondary,
            color: theme.color.inverseText,
            opacity: dirty ? 1 : 0.6,
          Severity: Major
          Found in examples/react-ts/src/AccountForm.tsx and 1 other location - About 2 hrs to fix
          addons/interactions/src/components/AccountForm/AccountForm.tsx on lines 541..547

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

            it('uses raw union value if elements are missing', () => {
              const docgenInfo = createDocgenInfo({
                flowType: {
                  name: 'union',
                  raw: '"minimum" | "maximum" | UserSize',
          Severity: Major
          Found in addons/docs/src/lib/docgen/flow/createPropDef.test.ts and 2 other locations - About 2 hrs to fix
          addons/docs/src/lib/docgen/flow/createPropDef.test.ts on lines 319..330
          addons/docs/src/lib/docgen/flow/createPropDef.test.ts on lines 332..343

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 78.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Function commandBuilder has 53 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function commandBuilder(
            options: StorybookBuilderOptions,
            context: BuilderContext
          ): Observable<StorybookBuilderOutput> {
            return from(setup(options, context)).pipe(
          Severity: Major
          Found in app/angular/src/builders/start-storybook/index.ts - About 2 hrs to fix
            Severity
            Category
            Status
            Source
            Language