zircleUI/zircleUI

View on GitHub

Showing 18 of 48 total issues

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

        ? {
            Xi: component.$parent.position.Xi,
            Yi: component.$parent.position.Yi,
            X: component.$parent.position.X,
            Y: component.$parent.position.Y,
Severity: Major
Found in src/store/modules/position.js and 1 other location - About 3 hrs to fix
src/store/modules/navigation.js on lines 127..134

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

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

              position: {
                X: options.fromSpot.position.Xabs,
                Y: options.fromSpot.position.Yabs,
                scale: options.fromSpot.position.scale,
                Xi: options.fromSpot.position.Xi,
Severity: Major
Found in src/store/modules/navigation.js and 1 other location - About 3 hrs to fix
src/store/modules/position.js on lines 49..56

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

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 (config.minSizesInPixels) {
      store.state.minSizesInPixels = config.minSizesInPixels
      store.actions.setLog('- Component minSizesInPixels: ' + JSON.stringify(config.minSizesInPixels))
    }
Severity: Major
Found in src/store/modules/app.js and 1 other location - About 1 hr to fix
src/store/modules/app.js on lines 27..30

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

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 (config.percentSizes) {
      store.state.percentSizes = config.percentSizes
      store.actions.setLog('- Component percentSizes: ' + JSON.stringify(config.percentSizes))
    }
Severity: Major
Found in src/store/modules/app.js and 1 other location - About 1 hr to fix
src/store/modules/app.js on lines 31..34

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

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

  { // medium
    media: window.matchMedia('(min-width: 320px)'),
    width: { xxl: 230, xl: 142, l: 88, m: 54, s: 34, xs: 20, xxs: 10 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // desktop or large tablets landscape
    media: window.matchMedia('(min-width: 992px) and (orientation: landscape)'),
    width: { xxl: 420, xl: 260, l: 160, m: 100, s: 62, xs: 38, xxs: 16 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // large desktop
    media: window.matchMedia('(min-width: 1200px) and (orientation: portrait)'),
    width: { xxl: 450, xl: 278, l: 172, m: 106, s: 66, xs: 42, xxs: 20 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // xxl desktop
    media: window.matchMedia('(min-width: 1800px)'),
    width: { xxl: 450, xl: 278, l: 172, m: 106, s: 66, xs: 42, xxs: 20 }
  }
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39

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

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

  { // small devices
    media: window.matchMedia('(max-width: 319px)'),
    width: { xxl: 200, xl: 124, l: 76, m: 48, s: 30, xs: 18, xxs: 10 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // tablets portrait
    media: window.matchMedia('(min-width: 768px) and (orientation: portrait) and (min-pixel-ratio: 2)'),
    width: { xxl: 340, xl: 210, l: 130, m: 80, s: 52, xs: 32, xxs: 14 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // desktop or large tablets portrait
    media: window.matchMedia('(min-width: 992px) and (orientation: portrait)'),
    width: { xxl: 420, xl: 260, l: 160, m: 100, s: 62, xs: 38, xxs: 16 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // medium - large devices portrait
    media: window.matchMedia('(min-width: 375px) and (orientation: portrait)'),
    width: { xxl: 260, xl: 160, l: 100, m: 62, s: 38, xs: 22, xxs: 12 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // tablets landscape
    media: window.matchMedia('(min-width: 768px) and (orientation: landscape)'),
    width: { xxl: 360, xl: 222, l: 138, m: 86, s: 54, xs: 32, xxs: 14 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 16..19
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  { // medium - large devices landscape
    media: window.matchMedia('(min-width: 375px) and (orientation: landscape)'),
    width: { xxl: 270, xl: 168, l: 104, m: 64, s: 40, xs: 24, xxs: 12 }
  },
Severity: Major
Found in src/store/utils/responsiveness.js and 9 other locations - About 1 hr to fix
src/store/utils/responsiveness.js on lines 4..7
src/store/utils/responsiveness.js on lines 8..11
src/store/utils/responsiveness.js on lines 12..15
src/store/utils/responsiveness.js on lines 20..23
src/store/utils/responsiveness.js on lines 24..27
src/store/utils/responsiveness.js on lines 28..31
src/store/utils/responsiveness.js on lines 32..35
src/store/utils/responsiveness.js on lines 36..39
src/store/utils/responsiveness.js on lines 40..43

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

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

  setThemeShapeToSquare () {
    store.actions.setLog('- Theme shape: square')
    store.state.appStyle.shape = 'square'
    return store.state.appStyle.shape
  },
Severity: Major
Found in src/store/modules/themes.js and 1 other location - About 1 hr to fix
src/store/modules/themes.js on lines 18..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 57.

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

  setThemeShapeToCircle () {
    store.actions.setLog('- Theme shape: circle')
    store.state.appStyle.shape = 'circle'
    return store.state.appStyle.shape
  }
Severity: Major
Found in src/store/modules/themes.js and 1 other location - About 1 hr to fix
src/store/modules/themes.js on lines 13..17

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

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

    store.actions.setLog('replace() => ' + store.state.history[store.state.history.length - 1].name)
Severity: Minor
Found in src/store/modules/router.js and 1 other location - About 50 mins to fix
src/store/modules/navigation.js on lines 176..176

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

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

      store.actions.setLog('goBack() => ' + store.state.history[store.state.history.length - 1].name)
Severity: Minor
Found in src/store/modules/navigation.js and 1 other location - About 50 mins to fix
src/store/modules/router.js on lines 31..31

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

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