codevise/pageflow

View on GitHub

Showing 617 of 1,024 total issues

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

    expect(dispatch).toHaveBeenCalledWith(sinon.match({
      type: CHANGE,
      payload: {
        attributes: {title: 'changed'}
      }
entry_types/paged/packages/pageflow-paged-react/src/collections/__spec__/watchBackboneCollection-spec.js on lines 130..135
entry_types/paged/packages/pageflow-paged-react/src/collections/__spec__/watchBackboneCollection-spec.js on lines 202..207

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

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

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

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

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

Refactorings

Further Reading

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

      expect(reducer).toHaveBeenCalledWith(undefined, sinon.match({
        type: 'PAGE_ACTION',
        meta: {
          collectionName: 'pages',
          itemId: 5
entry_types/paged/packages/pageflow-paged-react/src/collections/__spec__/createItemScopeConnector-spec.jsx on lines 108..114
entry_types/paged/packages/pageflow-paged-react/src/collections/__spec__/createItemScopeConnector-spec.jsx on lines 178..184

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

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

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

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

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

Refactorings

Further Reading

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

      const props = {
        page: {
          mobilePosterImageId: 5
        },
        hasMobilePlatform: true,
entry_types/paged/packages/pageflow-paged-react/src/media/components/__spec__/PageBackgroundVideo-spec.jsx on lines 46..55

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

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

  if (nextPlayerState.shouldSeekTo !== undefined && nextPlayerState.shouldSeekTo !== playerState.shouldSeekTo) {
    player.currentTime(nextPlayerState.shouldSeekTo);
  }
entry_types/scrolled/package/src/frontend/MediaPlayer/updatePlayerState.js on lines 23..25

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

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

    if (index === 0) {
      postMoveContentElementMessage({
        id: item.id,
        range: item.range,
        to: {
entry_types/scrolled/package/src/frontend/inlineEditing/EditableText/DropTargets.js on lines 41..61

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

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

    else if (index === targets.length - 1) {
      postMoveContentElementMessage({
        id: item.id,
        range: item.range,
        to: {
entry_types/scrolled/package/src/frontend/inlineEditing/EditableText/DropTargets.js on lines 31..61

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

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

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

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

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

Refactorings

Further Reading

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

      const props = {
        page: {
          mobilePosterImageId: 5
        },
        hasMobilePlatform: false,
entry_types/paged/packages/pageflow-paged-react/src/media/components/__spec__/PageBackgroundVideo-spec.jsx on lines 11..20

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

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

  if (playerState.shouldSeekTo !== undefined && prevPlayerState.shouldSeekTo !== playerState.shouldSeekTo ) {
    player.currentTime(playerState.shouldSeekTo);
  }
entry_types/paged/packages/pageflow-paged-react/src/media/components/createFilePlayer/handlePlayerState.js on lines 47..49

Duplicated Code

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

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

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

Tuning

This issue has a mass of 46.

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

pageTransitions.register('scroll_left', {
  v: {className: 'scroll scroll-in scroll-from_left', duration: 1100},
  h: {className: 'scroll scroll-in scroll-from_top scroll-fast', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('fade', {
  v: {className: 'fade fade-v', duration: 1100},
  h: {className: 'fade fade-h', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('crossfade', {
  v: {className: 'crossfade', duration: 1100},
  h: {className: 'crossfade crossfade-fast', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('scroll', {
  v: {className: 'scroll scroll-in scroll-from_bottom', duration: 1100},
  h: {className: 'scroll scroll-in scroll-from_right scroll-fast', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('fade_to_black', {
  v: {className: 'fade_to_black', duration: 2100},
  h: {className: 'fade_to_black', duration: 2100}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('scroll_right', {
  v: {className: 'scroll scroll-in scroll-from_right', duration: 1100},
  h: {className: 'scroll scroll-in scroll-from_bottom scroll-fast', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('cut', {
  v: {className: 'cut', duration: 1100},
  h: {className: 'cut', duration: 1100}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('scroll_over_from_right', {
  v: {className: 'scroll scroll-over scroll-from_right', duration: 1100},
  h: {className: 'scroll scroll-over scroll-from_bottom scroll-fast', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

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

pageTransitions.register('scroll_over_from_left', {
  v: {className: 'scroll scroll-over scroll-from_left', duration: 1100},
  h: {className: 'scroll scroll-over scroll-from_top scroll-fast', duration: 600}
});
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72

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

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

        const reducer = createReducer('posts', {
          itemReducer: function(item, action) {
            return {...item, title: action.payload.title};
          }
        });
entry_types/paged/packages/pageflow-paged-react/src/collections/__spec__/createReducer-spec.js on lines 385..389

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

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

        <div className={styles.iconBottomRight}>
          <ArrowLeftIcon width={size} height={size} />
        </div>
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js on lines 14..16
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js on lines 17..19
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js on lines 23..25

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

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

        <div className={styles.iconBottomLeft}>
          <ArrowLeftIcon width={size} height={size} />
        </div>
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js on lines 14..16
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js on lines 17..19
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js on lines 20..22

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

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