rofrischmann/fela

View on GitHub

Showing 307 of 412 total issues

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

const IconHeart = props =>
  createElement('svg', {
    children: (
      <g>
        <path d="M38.723 12c-7.187 0-11.16 7.306-11.723 8.131C26.437 19.306 22.504 12 15.277 12 8.791 12 3.533 18.163 3.533 24.647 3.533 39.964 21.891 55.907 27 56c5.109-.093 23.467-16.036 23.467-31.353C50.467 18.163 45.209 12 38.723 12z" />
benchmarks/src/implementations/react-native-web/Tweet/IconReply.js on lines 6..15
benchmarks/src/implementations/react-native-web/Tweet/IconRetweet.js on lines 6..15

Duplicated Code

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

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

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

Tuning

This issue has a mass of 67.

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

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

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

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

Refactorings

Further Reading

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

const IconReply = props =>
  createElement('svg', {
    children: (
      <g>
        <path d="M41 31h-9V19a2.999 2.999 0 0 0-4.817-2.386l-21 16a3 3 0 0 0-.001 4.773l21 16a3.006 3.006 0 0 0 3.15.301A2.997 2.997 0 0 0 32 51V39h9c5.514 0 10 4.486 10 10a4 4 0 0 0 8 0c0-9.925-8.075-18-18-18z" />
benchmarks/src/implementations/react-native-web/Tweet/IconHeart.js on lines 6..15
benchmarks/src/implementations/react-native-web/Tweet/IconRetweet.js on lines 6..15

Duplicated Code

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

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

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

Tuning

This issue has a mass of 67.

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

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

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

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

Refactorings

Further Reading

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

function Heading({ level, children, addHeading }) {
  const [text, fixedId] = getFixedId(children)
  const id = getId(children, level, fixedId)
  addHeading([text, id, level])

Severity: Major
Found in website/scripts/generate-headings.js and 1 other location - About 1 hr to fix
website/utils/getPageDetails.js on lines 13..19

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

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

class View extends React.Component {
  render() {
    const { style, ...other } = this.props
    return <div {...other} className={css(viewStyle, ...style)} />
  }
Severity: Major
Found in benchmarks/src/implementations/emotion/View.js and 1 other location - About 1 hr to fix
benchmarks/src/implementations/glamor/View.js on lines 5..10

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

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

class View extends React.Component {
  render() {
    const { style, ...other } = this.props;
    return <div {...other} className={css(viewStyle, ...style)} />;
  }
Severity: Major
Found in benchmarks/src/implementations/glamor/View.js and 1 other location - About 1 hr to fix
benchmarks/src/implementations/emotion/View.js on lines 5..10

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

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

function Heading({ level, children, addHeading }) {
  const [text, fixedId] = getFixedId(children)
  const id = getId(children, level, fixedId)
  addHeading([text, id, level])

Severity: Major
Found in website/utils/getPageDetails.js and 1 other location - About 1 hr to fix
website/scripts/generate-headings.js on lines 11..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 66.

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

        <ThemeProvider theme={{ backgroundColor: 'blue' }}>
          <FelaTheme>{(theme) => <div>{JSON.stringify(theme)}</div>}</FelaTheme>
        </ThemeProvider>
packages/fela-integration/src/jest-react-fela_react-fela/__tests__/ThemeProviderFactory-test.js on lines 10..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 65.

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

      <ThemeProvider theme={{ color: 'red' }}>
        <FelaTheme>{(theme) => <div>{JSON.stringify(theme)}</div>}</FelaTheme>
      </ThemeProvider>
packages/fela-integration/src/jest-react-fela_react-fela/__tests__/ThemeProviderFactory-test.js on lines 21..23

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

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

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

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

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

Refactorings

Further Reading

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

const getColor = color => {
  switch (color) {
    case 0:
      return '#14171A';
    case 1:
Severity: Major
Found in benchmarks/src/implementations/styled-jsx/Box.js and 1 other location - About 1 hr to fix
benchmarks/src/implementations/styled-components/Box.js on lines 4..21

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

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

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

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

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

Refactorings

Further Reading

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

const getColor = color => {
  switch (color) {
    case 0:
      return '#14171A'
    case 1:
Severity: Major
Found in benchmarks/src/implementations/styled-components/Box.js and 1 other location - About 1 hr to fix
benchmarks/src/implementations/styled-jsx/Box.js on lines 6..23

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

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/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-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/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-prefixer/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-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-responsive-value/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-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-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-theme-value/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-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-identifier/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-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-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-preset-web/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-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-hover-media/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-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-fallback-value/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-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-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-important/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-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

Severity
Category
Status
Source
Language