grommet/grommet

View on GitHub
src/js/components/DataTable/stories/MultiplePin.js

Summary

Maintainability
F
4 days
Test Coverage

File MultiplePin.js has 303 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from 'react';
import { Box, DataTable, Meter, Text } from 'grommet';

const data = [
  {
Severity: Minor
Found in src/js/components/DataTable/stories/MultiplePin.js - About 3 hrs to fix

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

      {
        property: 'savings',
        header: (
          <Text color="text-strong" weight="bold">
            Savings{' '}
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 1 other location - About 4 hrs to fix
    src/js/components/DataTable/stories/data.js on lines 286..300

    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 126.

    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

        header: (
          <Box pad={{ horizontal: 'small', vertical: 'xsmall' }}>
            <Text color="text-strong" weight="bold">
              Pinned{' '}
              <Text size="xsmall" weight="normal" color="text">
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 1 other location - About 2 hrs to fix
    src/js/components/DataTable/stories/data.js on lines 245..254

    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 89.

    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

          <Box pad={{ vertical: 'xsmall' }}>
            <Meter
              values={[{ value: pinned / pinnable, color: 'graph-2' }]}
              max={1}
              thickness="small"
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 1 other location - About 1 hr to fix
    src/js/components/DataTable/stories/data.js on lines 274..281

    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 74.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'om2hy2z79kyz',
        poolName: 'Dev36-erray01 (default)',
        groupName: 'Dev',
        arrays: 'harm-stage-array02',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'lva18ol56t7a',
        poolName: 'DevStageSymR31 (default)',
        groupName: 'Dev',
        arrays: 'rtp-array198',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'hx5f2e57phfb',
        poolName: 'Dev-K8-Sym-R5-3 (default)',
        groupName: 'Dev',
        arrays: 'harm-stage-array01',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'l3d8xkm0knx4',
        poolName: 'asup-array2 (default)',
        groupName: 'Asup',
        arrays: 'ds-array02',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'g9v1104koten',
        poolName: 'asup-array2 (default)',
        groupName: 'Asup',
        arrays: 'ds-array02',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'f1iucu2ybzf3',
        poolName: 'DevStageSymR31 (default)',
        groupName: 'Dev',
        arrays: 'rtp-array198',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'mjbpiclthh8y',
        poolName: 'Asup-array01-lvs (default)',
        groupName: 'Asup',
        arrays: 'asup-array01-lvs',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: '1jrnzxds9419',
        poolName: 'DevHarmCs2R39',
        groupName: 'Dev',
        arrays: 'harm-stage-array03',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: '6d9u4hv95xjq',
        poolName: 'asup-array1 (default)',
        groupName: 'Asup',
        arrays: 'harm-stage-array04',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'qpsidi3ccnpr',
        poolName: 'Dev-K8-Sym-R5-3 (default)',
        groupName: 'Dev',
        arrays: 'Harm-cs-stage-R4-5',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'jsjas87qeqgj',
        poolName: 'Dev36-varray02 (default)',
        groupName: 'Dev',
        arrays: 'ds-array01',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'ny13xepj8wyc',
        poolName: 'Dev36-varray02 (default)',
        groupName: 'Dev',
        arrays: 'ds-array01',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 148..160
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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 13 locations. Consider refactoring.
    Open

      {
        id: 'vz86u3ll4ai2',
        poolName: 'DevHarmCs2R39',
        groupName: 'Dev',
        arrays: 'harm-stage-array03',
    Severity: Major
    Found in src/js/components/DataTable/stories/MultiplePin.js and 12 other locations - About 1 hr to fix
    src/js/components/DataTable/stories/MultiplePin.js on lines 5..17
    src/js/components/DataTable/stories/MultiplePin.js on lines 18..30
    src/js/components/DataTable/stories/MultiplePin.js on lines 31..43
    src/js/components/DataTable/stories/MultiplePin.js on lines 44..56
    src/js/components/DataTable/stories/MultiplePin.js on lines 57..69
    src/js/components/DataTable/stories/MultiplePin.js on lines 70..82
    src/js/components/DataTable/stories/MultiplePin.js on lines 83..95
    src/js/components/DataTable/stories/MultiplePin.js on lines 96..108
    src/js/components/DataTable/stories/MultiplePin.js on lines 109..121
    src/js/components/DataTable/stories/MultiplePin.js on lines 122..134
    src/js/components/DataTable/stories/MultiplePin.js on lines 135..147
    src/js/components/DataTable/stories/MultiplePin.js on lines 161..173

    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 67.

    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

    There are no issues that match your filters.

    Category
    Status