rofrischmann/fela

View on GitHub

Showing 307 of 412 total issues

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-plugin-kebab-case/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-layout-debugger/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-plugin-simulate/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-plugin-validator/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-perf/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-statistics/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-plugin-bidi/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-beautifier/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-plugin-native-media-query/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-multiple-selectors/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

function getLibraryName(str) {
  return (
    str.charAt(0).toUpperCase() +
    str.substr(1).replace(DASH, (match) => match[1].toUpperCase())
  )
Severity: Major
Found in packages/fela-plugin-multiple-selectors/webpack.config.js and 41 other locations - About 1 hr to fix
packages/fela-beautifier/webpack.config.js on lines 7..12
packages/fela-enforce-longhands/webpack.config.js on lines 7..12
packages/fela-layout-debugger/webpack.config.js on lines 7..12
packages/fela-logger/webpack.config.js on lines 7..12
packages/fela-monolithic/webpack.config.js on lines 7..12
packages/fela-perf/webpack.config.js on lines 7..12
packages/fela-plugin-bidi/webpack.config.js on lines 7..12
packages/fela-plugin-custom-property/webpack.config.js on lines 7..12
packages/fela-plugin-embedded/webpack.config.js on lines 7..12
packages/fela-plugin-expand-shorthand/webpack.config.js on lines 7..12
packages/fela-plugin-extend/webpack.config.js on lines 7..12
packages/fela-plugin-friendly-pseudo-class/webpack.config.js on lines 7..12
packages/fela-plugin-fullscreen-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-hover-media/webpack.config.js on lines 7..12
packages/fela-plugin-important/webpack.config.js on lines 7..12
packages/fela-plugin-isolation/webpack.config.js on lines 7..12
packages/fela-plugin-kebab-case/webpack.config.js on lines 7..12
packages/fela-plugin-logger/webpack.config.js on lines 7..12
packages/fela-plugin-named-keys/webpack.config.js on lines 7..12
packages/fela-plugin-native-media-query/webpack.config.js on lines 7..12
packages/fela-plugin-placeholder-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-pseudo-prefixer/webpack.config.js on lines 7..12
packages/fela-plugin-responsive-value/webpack.config.js on lines 7..12
packages/fela-plugin-rtl/webpack.config.js on lines 7..12
packages/fela-plugin-simulate/webpack.config.js on lines 7..12
packages/fela-plugin-theme-value/webpack.config.js on lines 7..12
packages/fela-plugin-unit/webpack.config.js on lines 7..12
packages/fela-plugin-validator/webpack.config.js on lines 7..12
packages/fela-preset-dev/webpack.config.js on lines 7..12
packages/fela-preset-web/webpack.config.js on lines 7..12
packages/fela-sort-classnames/webpack.config.js on lines 7..12
packages/fela-sort-media-query-mobile-first/webpack.config.js on lines 7..12
packages/fela-statistics/webpack.config.js on lines 7..12
packages/fela-utils/webpack.config.js on lines 7..12
packages/fela-dom/webpack.config.js on lines 7..12
packages/fela-identifier/webpack.config.js on lines 7..12
packages/fela-plugin-fallback-value/webpack.config.js on lines 7..12
packages/fela-tools/webpack.config.js on lines 7..12
packages/fela/webpack.config.js on lines 7..12
packages/react-fela/webpack.config.js on lines 7..12

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

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

    expect(
      responsiveValue(
        (values) => {
          if (values.length === 2) {
            return ['@media (min-width: 1024px)']
packages/fela-plugin-responsive-value/src/__tests__/responsiveValue-test.js on lines 10..33

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

    expect(
      responsiveValue(
        (values) => {
          if (values.length === 2) {
            return ['@media (min-width: 1024px)']
packages/fela-plugin-responsive-value/src/__tests__/responsiveValue-test.js on lines 44..71

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

          <SierpinskiTriangle
            components={components}
            depth={3}
            renderCount={renderCount}
            s={s}
Severity: Major
Found in benchmarks/src/cases/SierpinskiTriangle.js and 1 other location - About 1 hr to fix
benchmarks/src/cases/SierpinskiTriangle.js on lines 66..73

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

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

    subscribe(callback) {
      renderer.listeners.push(callback)

      return {
        unsubscribe: () =>
Severity: Major
Found in packages/fela/src/createRenderer.js and 1 other location - About 1 hr to fix
packages/fela-native/src/index.js on lines 22..29

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

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

    subscribe(callback) {
      renderer.listeners.push(callback)

      return {
        unsubscribe: () =>
Severity: Major
Found in packages/fela-native/src/index.js and 1 other location - About 1 hr to fix
packages/fela/src/createRenderer.js on lines 168..175

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

          <SierpinskiTriangle
            components={components}
            depth={2}
            renderCount={renderCount}
            s={s}
Severity: Major
Found in benchmarks/src/cases/SierpinskiTriangle.js and 1 other location - About 1 hr to fix
benchmarks/src/cases/SierpinskiTriangle.js on lines 74..81

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

  it('should accept a borderMode=longhand configuration', () => {
    const renderer = createRenderer({
      enhancers: [
        enforceLonghands({
          borderMode: 'longhand',
Severity: Major
Found in packages/fela-enforce-longhands/src/__tests__/index-test.js and 1 other location - About 1 hr to fix
packages/fela-enforce-longhands/src/__tests__/index-test.js on lines 26..36

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

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

  it('should accept a borderMode=directional configuration', () => {
    const renderer = createRenderer({
      enhancers: [
        enforceLonghands({
          borderMode: 'directional',
Severity: Major
Found in packages/fela-enforce-longhands/src/__tests__/index-test.js and 1 other location - About 1 hr to fix
packages/fela-enforce-longhands/src/__tests__/index-test.js on lines 14..24

Duplicated Code

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

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

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

Tuning

This issue has a mass of 60.

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