Showing 2,206 of 2,206 total issues

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

      <Grid
        dir={dir}
        columns={{
          group0: 6,
          group1: 6,
Severity: Major
Found in src/app/legacy/psammead/psammead-grid/src/index.stories.jsx and 2 other locations - About 2 hrs to fix
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1692..1874
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1881..2112

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

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

      <Grid
        dir={dir}
        columns={{
          group0: 6,
          group1: 6,
Severity: Major
Found in src/app/legacy/psammead/psammead-grid/src/index.stories.jsx and 2 other locations - About 2 hrs to fix
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1618..1685
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1692..1874

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1069..1083
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

        <Grid
          dir={dir}
          item
          columns={{
            group0: 2,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 604..618
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 619..633
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 634..648
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 649..663
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 964..978
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 979..993
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 994..1008
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1009..1023
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1024..1038
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1039..1053
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1054..1068
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1084..1098
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1126..1140
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1141..1155
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1156..1170
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1171..1185
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1186..1200
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1201..1215
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1216..1230
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1231..1245

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

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

Severity
Category
Status
Source
Language