rofrischmann/fela

View on GitHub

Showing 307 of 412 total issues

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

  it('should return the pure query', () => {
    expect(
      extractSupportQuery('@supports (display:grid){.a{color:red}}')
    ).toEqual('(display:grid)')
    expect(
packages/fela/src/__tests__/getFontFormat-test.js on lines 19..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 51.

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

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

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

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

Refactorings

Further Reading

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

export default () => (
  <Wrapper>
    <Header title="Welcome to Fela." />
    <Text>
      This is the basic example with Preact.
Severity: Major
Found in examples/example-preact/app.js and 2 other locations - About 50 mins to fix
examples/example-inferno/app.js on lines 7..15
examples/example-react/app.js on lines 7..13

Duplicated Code

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

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

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

Tuning

This issue has a mass of 51.

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

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

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

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

Refactorings

Further Reading

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

  it('should return an empty string', () => {
    expect(getFontFormat('foobar.png')).toEqual('')
    expect(
      getFontFormat('data:image/png;base64,blahblahblahblahblahblah')
    ).toEqual('')
Severity: Minor
Found in packages/fela/src/__tests__/getFontFormat-test.js and 1 other location - About 50 mins to fix
packages/fela-dom/src/dom/rehydration/__tests__/extractSupportQuery-test.js on lines 4..13

Duplicated Code

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

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

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

Tuning

This issue has a mass of 51.

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

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

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

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

Refactorings

Further Reading

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

      } else {
        if (!cluster.supportRules[support]) {
          cluster.supportRules[support] = ''
        }

Severity: Minor
Found in packages/fela-utils/src/clusterCache.js and 1 other location - About 45 mins to fix
packages/fela-utils/src/clusterCache.js on lines 31..37

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

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

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

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

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

Refactorings

Further Reading

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

    } else if (media) {
      if (!cluster.mediaRules[media]) {
        cluster.mediaRules[media] = ''
      }

Severity: Minor
Found in packages/fela-utils/src/clusterCache.js and 1 other location - About 45 mins to fix
packages/fela-utils/src/clusterCache.js on lines 24..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 50.

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

      case FONT_TYPE:
        if (node.textContent.indexOf(change.fontFace) === -1) {
          node.textContent += change.fontFace
        }
        break
Severity: Minor
Found in packages/fela-dom/src/dom/connection/createSubscription.js and 1 other location - About 40 mins to fix
packages/fela-dom/src/dom/connection/createSubscription.js on lines 31..35

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

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

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

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

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

Refactorings

Further Reading

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-identifier/jest.config.js and 2 other locations - About 40 mins to fix
packages/fela-dom/jest.config.js on lines 1..8
packages/fela-tools/jest.config.js on lines 1..8

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

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

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

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

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

Refactorings

Further Reading

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-tools/jest.config.js and 2 other locations - About 40 mins to fix
packages/fela-dom/jest.config.js on lines 1..8
packages/fela-identifier/jest.config.js on lines 1..8

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

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

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

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

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

Refactorings

Further Reading

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-dom/jest.config.js and 2 other locations - About 40 mins to fix
packages/fela-identifier/jest.config.js on lines 1..8
packages/fela-tools/jest.config.js on lines 1..8

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

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

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

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

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

Refactorings

Further Reading

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

          } else if (isSupport(property)) {
            const combinedSupport = generateCombinedMediaQuery(
              support,
              property.slice(9).trim()
            )
Severity: Minor
Found in packages/fela/src/createRenderer.js and 1 other location - About 40 mins to fix
packages/fela/src/createRenderer.js on lines 219..245

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

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

      case KEYFRAME_TYPE:
        if (node.textContent.indexOf(change.keyframe) === -1) {
          node.textContent += change.keyframe
        }
        break
Severity: Minor
Found in packages/fela-dom/src/dom/connection/createSubscription.js and 1 other location - About 40 mins to fix
packages/fela-dom/src/dom/connection/createSubscription.js on lines 36..40

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

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

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

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

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

Refactorings

Further Reading

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

          } else if (isMediaQuery(property)) {
            const combinedMediaQuery = generateCombinedMediaQuery(
              media,
              property.slice(6).trim()
            )
Severity: Minor
Found in packages/fela/src/createRenderer.js and 1 other location - About 40 mins to fix
packages/fela/src/createRenderer.js on lines 230..245

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

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-plugin-multiple-selectors/jest.config.js and 38 other locations - About 40 mins to fix
packages/fela-beautifier/jest.config.js on lines 1..8
packages/fela-bindings/jest.config.js on lines 1..8
packages/fela-enforce-longhands/jest.config.js on lines 1..8
packages/fela-layout-debugger/jest.config.js on lines 1..8
packages/fela-monolithic/jest.config.js on lines 1..8
packages/fela-native/jest.config.js on lines 1..8
packages/fela-perf/jest.config.js on lines 1..8
packages/fela-plugin-bidi/jest.config.js on lines 1..8
packages/fela-plugin-custom-property/jest.config.js on lines 1..8
packages/fela-plugin-embedded/jest.config.js on lines 1..8
packages/fela-plugin-expand-shorthand/jest.config.js on lines 1..8
packages/fela-plugin-extend/jest.config.js on lines 1..8
packages/fela-plugin-friendly-pseudo-class/jest.config.js on lines 1..8
packages/fela-plugin-fullscreen-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-hover-media/jest.config.js on lines 1..8
packages/fela-plugin-important/jest.config.js on lines 1..8
packages/fela-plugin-isolation/jest.config.js on lines 1..8
packages/fela-plugin-kebab-case/jest.config.js on lines 1..8
packages/fela-plugin-logger/jest.config.js on lines 1..8
packages/fela-plugin-named-keys/jest.config.js on lines 1..8
packages/fela-plugin-placeholder-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-pseudo-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-responsive-value/jest.config.js on lines 1..8
packages/fela-plugin-rtl/jest.config.js on lines 1..8
packages/fela-plugin-simulate/jest.config.js on lines 1..8
packages/fela-plugin-theme-value/jest.config.js on lines 1..8
packages/fela-plugin-unit/jest.config.js on lines 1..8
packages/fela-plugin-validator/jest.config.js on lines 1..8
packages/fela-preset-dev/jest.config.js on lines 1..8
packages/fela-preset-web/jest.config.js on lines 1..8
packages/fela-sort-classnames/jest.config.js on lines 1..8
packages/fela-sort-media-query-mobile-first/jest.config.js on lines 1..8
packages/fela-utils/jest.config.js on lines 1..8
packages/fela-plugin-fallback-value/jest.config.js on lines 1..8
packages/fela-plugin-typescript/jest.config.js on lines 1..8
packages/fela/jest.config.js on lines 1..8
packages/inferno-fela/jest.config.js on lines 1..8

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

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-native/jest.config.js and 38 other locations - About 40 mins to fix
packages/fela-beautifier/jest.config.js on lines 1..8
packages/fela-bindings/jest.config.js on lines 1..8
packages/fela-enforce-longhands/jest.config.js on lines 1..8
packages/fela-layout-debugger/jest.config.js on lines 1..8
packages/fela-monolithic/jest.config.js on lines 1..8
packages/fela-perf/jest.config.js on lines 1..8
packages/fela-plugin-bidi/jest.config.js on lines 1..8
packages/fela-plugin-custom-property/jest.config.js on lines 1..8
packages/fela-plugin-embedded/jest.config.js on lines 1..8
packages/fela-plugin-expand-shorthand/jest.config.js on lines 1..8
packages/fela-plugin-extend/jest.config.js on lines 1..8
packages/fela-plugin-friendly-pseudo-class/jest.config.js on lines 1..8
packages/fela-plugin-fullscreen-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-hover-media/jest.config.js on lines 1..8
packages/fela-plugin-important/jest.config.js on lines 1..8
packages/fela-plugin-isolation/jest.config.js on lines 1..8
packages/fela-plugin-kebab-case/jest.config.js on lines 1..8
packages/fela-plugin-logger/jest.config.js on lines 1..8
packages/fela-plugin-multiple-selectors/jest.config.js on lines 1..8
packages/fela-plugin-named-keys/jest.config.js on lines 1..8
packages/fela-plugin-placeholder-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-pseudo-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-responsive-value/jest.config.js on lines 1..8
packages/fela-plugin-rtl/jest.config.js on lines 1..8
packages/fela-plugin-simulate/jest.config.js on lines 1..8
packages/fela-plugin-theme-value/jest.config.js on lines 1..8
packages/fela-plugin-unit/jest.config.js on lines 1..8
packages/fela-plugin-validator/jest.config.js on lines 1..8
packages/fela-preset-dev/jest.config.js on lines 1..8
packages/fela-preset-web/jest.config.js on lines 1..8
packages/fela-sort-classnames/jest.config.js on lines 1..8
packages/fela-sort-media-query-mobile-first/jest.config.js on lines 1..8
packages/fela-utils/jest.config.js on lines 1..8
packages/fela-plugin-fallback-value/jest.config.js on lines 1..8
packages/fela-plugin-typescript/jest.config.js on lines 1..8
packages/fela/jest.config.js on lines 1..8
packages/inferno-fela/jest.config.js on lines 1..8

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

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-plugin-validator/jest.config.js and 38 other locations - About 40 mins to fix
packages/fela-beautifier/jest.config.js on lines 1..8
packages/fela-bindings/jest.config.js on lines 1..8
packages/fela-enforce-longhands/jest.config.js on lines 1..8
packages/fela-layout-debugger/jest.config.js on lines 1..8
packages/fela-monolithic/jest.config.js on lines 1..8
packages/fela-native/jest.config.js on lines 1..8
packages/fela-perf/jest.config.js on lines 1..8
packages/fela-plugin-bidi/jest.config.js on lines 1..8
packages/fela-plugin-custom-property/jest.config.js on lines 1..8
packages/fela-plugin-embedded/jest.config.js on lines 1..8
packages/fela-plugin-expand-shorthand/jest.config.js on lines 1..8
packages/fela-plugin-extend/jest.config.js on lines 1..8
packages/fela-plugin-friendly-pseudo-class/jest.config.js on lines 1..8
packages/fela-plugin-fullscreen-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-hover-media/jest.config.js on lines 1..8
packages/fela-plugin-important/jest.config.js on lines 1..8
packages/fela-plugin-isolation/jest.config.js on lines 1..8
packages/fela-plugin-kebab-case/jest.config.js on lines 1..8
packages/fela-plugin-logger/jest.config.js on lines 1..8
packages/fela-plugin-multiple-selectors/jest.config.js on lines 1..8
packages/fela-plugin-named-keys/jest.config.js on lines 1..8
packages/fela-plugin-placeholder-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-pseudo-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-responsive-value/jest.config.js on lines 1..8
packages/fela-plugin-rtl/jest.config.js on lines 1..8
packages/fela-plugin-simulate/jest.config.js on lines 1..8
packages/fela-plugin-theme-value/jest.config.js on lines 1..8
packages/fela-plugin-unit/jest.config.js on lines 1..8
packages/fela-preset-dev/jest.config.js on lines 1..8
packages/fela-preset-web/jest.config.js on lines 1..8
packages/fela-sort-classnames/jest.config.js on lines 1..8
packages/fela-sort-media-query-mobile-first/jest.config.js on lines 1..8
packages/fela-utils/jest.config.js on lines 1..8
packages/fela-plugin-fallback-value/jest.config.js on lines 1..8
packages/fela-plugin-typescript/jest.config.js on lines 1..8
packages/fela/jest.config.js on lines 1..8
packages/inferno-fela/jest.config.js on lines 1..8

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

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-plugin-bidi/jest.config.js and 38 other locations - About 40 mins to fix
packages/fela-beautifier/jest.config.js on lines 1..8
packages/fela-bindings/jest.config.js on lines 1..8
packages/fela-enforce-longhands/jest.config.js on lines 1..8
packages/fela-layout-debugger/jest.config.js on lines 1..8
packages/fela-monolithic/jest.config.js on lines 1..8
packages/fela-native/jest.config.js on lines 1..8
packages/fela-perf/jest.config.js on lines 1..8
packages/fela-plugin-custom-property/jest.config.js on lines 1..8
packages/fela-plugin-embedded/jest.config.js on lines 1..8
packages/fela-plugin-expand-shorthand/jest.config.js on lines 1..8
packages/fela-plugin-extend/jest.config.js on lines 1..8
packages/fela-plugin-friendly-pseudo-class/jest.config.js on lines 1..8
packages/fela-plugin-fullscreen-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-hover-media/jest.config.js on lines 1..8
packages/fela-plugin-important/jest.config.js on lines 1..8
packages/fela-plugin-isolation/jest.config.js on lines 1..8
packages/fela-plugin-kebab-case/jest.config.js on lines 1..8
packages/fela-plugin-logger/jest.config.js on lines 1..8
packages/fela-plugin-multiple-selectors/jest.config.js on lines 1..8
packages/fela-plugin-named-keys/jest.config.js on lines 1..8
packages/fela-plugin-placeholder-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-pseudo-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-responsive-value/jest.config.js on lines 1..8
packages/fela-plugin-rtl/jest.config.js on lines 1..8
packages/fela-plugin-simulate/jest.config.js on lines 1..8
packages/fela-plugin-theme-value/jest.config.js on lines 1..8
packages/fela-plugin-unit/jest.config.js on lines 1..8
packages/fela-plugin-validator/jest.config.js on lines 1..8
packages/fela-preset-dev/jest.config.js on lines 1..8
packages/fela-preset-web/jest.config.js on lines 1..8
packages/fela-sort-classnames/jest.config.js on lines 1..8
packages/fela-sort-media-query-mobile-first/jest.config.js on lines 1..8
packages/fela-utils/jest.config.js on lines 1..8
packages/fela-plugin-fallback-value/jest.config.js on lines 1..8
packages/fela-plugin-typescript/jest.config.js on lines 1..8
packages/fela/jest.config.js on lines 1..8
packages/inferno-fela/jest.config.js on lines 1..8

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

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

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

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

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

Refactorings

Further Reading

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

const Twitter = (props) => (
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" {...props}>
    <path d="M16 3.538a6.461 6.461 0 0 1-1.884.516 3.301 3.301 0 0 0 1.444-1.816 6.607 6.607 0 0 1-2.084.797 3.28 3.28 0 0 0-2.397-1.034 3.28 3.28 0 0 0-3.197 4.028 9.321 9.321 0 0 1-6.766-3.431 3.284 3.284 0 0 0 1.015 4.381A3.301 3.301 0 0 1 .643 6.57v.041A3.283 3.283 0 0 0 3.277 9.83a3.291 3.291 0 0 1-1.485.057 3.293 3.293 0 0 0 3.066 2.281 6.586 6.586 0 0 1-4.862 1.359 9.286 9.286 0 0 0 5.034 1.475c6.037 0 9.341-5.003 9.341-9.341 0-.144-.003-.284-.009-.425a6.59 6.59 0 0 0 1.637-1.697z" />
  </svg>
)
Severity: Minor
Found in website/icons/Twitter.js and 1 other location - About 40 mins to fix
website/icons/Hamburger.js on lines 1..5

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

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/fela-plugin-friendly-pseudo-class/jest.config.js and 38 other locations - About 40 mins to fix
packages/fela-beautifier/jest.config.js on lines 1..8
packages/fela-bindings/jest.config.js on lines 1..8
packages/fela-enforce-longhands/jest.config.js on lines 1..8
packages/fela-layout-debugger/jest.config.js on lines 1..8
packages/fela-monolithic/jest.config.js on lines 1..8
packages/fela-native/jest.config.js on lines 1..8
packages/fela-perf/jest.config.js on lines 1..8
packages/fela-plugin-bidi/jest.config.js on lines 1..8
packages/fela-plugin-custom-property/jest.config.js on lines 1..8
packages/fela-plugin-embedded/jest.config.js on lines 1..8
packages/fela-plugin-expand-shorthand/jest.config.js on lines 1..8
packages/fela-plugin-extend/jest.config.js on lines 1..8
packages/fela-plugin-fullscreen-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-hover-media/jest.config.js on lines 1..8
packages/fela-plugin-important/jest.config.js on lines 1..8
packages/fela-plugin-isolation/jest.config.js on lines 1..8
packages/fela-plugin-kebab-case/jest.config.js on lines 1..8
packages/fela-plugin-logger/jest.config.js on lines 1..8
packages/fela-plugin-multiple-selectors/jest.config.js on lines 1..8
packages/fela-plugin-named-keys/jest.config.js on lines 1..8
packages/fela-plugin-placeholder-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-pseudo-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-responsive-value/jest.config.js on lines 1..8
packages/fela-plugin-rtl/jest.config.js on lines 1..8
packages/fela-plugin-simulate/jest.config.js on lines 1..8
packages/fela-plugin-theme-value/jest.config.js on lines 1..8
packages/fela-plugin-unit/jest.config.js on lines 1..8
packages/fela-plugin-validator/jest.config.js on lines 1..8
packages/fela-preset-dev/jest.config.js on lines 1..8
packages/fela-preset-web/jest.config.js on lines 1..8
packages/fela-sort-classnames/jest.config.js on lines 1..8
packages/fela-sort-media-query-mobile-first/jest.config.js on lines 1..8
packages/fela-utils/jest.config.js on lines 1..8
packages/fela-plugin-fallback-value/jest.config.js on lines 1..8
packages/fela-plugin-typescript/jest.config.js on lines 1..8
packages/fela/jest.config.js on lines 1..8
packages/inferno-fela/jest.config.js on lines 1..8

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

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

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

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

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

Refactorings

Further Reading

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

const Hamburger = (props) => (
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" {...props}>
    <path d="M28.9 9H3.2a1.11 1.11 0 0 1-1.1-1.1v-.8a1.22 1.22 0 0 1 1.2-1.2H29a1.22 1.22 0 0 1 1.2 1.2v.8A1.38 1.38 0 0 1 28.9 9zm1.2 6.4v-.8a1.22 1.22 0 0 0-1.2-1.2H3.2A1.22 1.22 0 0 0 2 14.6v.8a1.22 1.22 0 0 0 1.2 1.2h25.7a1.29 1.29 0 0 0 1.2-1.2zm0 7.5v-.8a1.22 1.22 0 0 0-1.2-1.2H3.2A1.22 1.22 0 0 0 2 22.1v.8a1.22 1.22 0 0 0 1.2 1.2h25.7a1.22 1.22 0 0 0 1.2-1.2z" />
  </svg>
)
Severity: Minor
Found in website/icons/Hamburger.js and 1 other location - About 40 mins to fix
website/icons/Twitter.js on lines 1..5

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

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

module.exports = {
  verbose: true,
  testRegex: 'test\\.js$',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['/lib/', '/es/'],
Severity: Major
Found in packages/inferno-fela/jest.config.js and 38 other locations - About 40 mins to fix
packages/fela-beautifier/jest.config.js on lines 1..8
packages/fela-bindings/jest.config.js on lines 1..8
packages/fela-enforce-longhands/jest.config.js on lines 1..8
packages/fela-layout-debugger/jest.config.js on lines 1..8
packages/fela-monolithic/jest.config.js on lines 1..8
packages/fela-native/jest.config.js on lines 1..8
packages/fela-perf/jest.config.js on lines 1..8
packages/fela-plugin-bidi/jest.config.js on lines 1..8
packages/fela-plugin-custom-property/jest.config.js on lines 1..8
packages/fela-plugin-embedded/jest.config.js on lines 1..8
packages/fela-plugin-expand-shorthand/jest.config.js on lines 1..8
packages/fela-plugin-extend/jest.config.js on lines 1..8
packages/fela-plugin-friendly-pseudo-class/jest.config.js on lines 1..8
packages/fela-plugin-fullscreen-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-hover-media/jest.config.js on lines 1..8
packages/fela-plugin-important/jest.config.js on lines 1..8
packages/fela-plugin-isolation/jest.config.js on lines 1..8
packages/fela-plugin-kebab-case/jest.config.js on lines 1..8
packages/fela-plugin-logger/jest.config.js on lines 1..8
packages/fela-plugin-multiple-selectors/jest.config.js on lines 1..8
packages/fela-plugin-named-keys/jest.config.js on lines 1..8
packages/fela-plugin-placeholder-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-pseudo-prefixer/jest.config.js on lines 1..8
packages/fela-plugin-responsive-value/jest.config.js on lines 1..8
packages/fela-plugin-rtl/jest.config.js on lines 1..8
packages/fela-plugin-simulate/jest.config.js on lines 1..8
packages/fela-plugin-theme-value/jest.config.js on lines 1..8
packages/fela-plugin-unit/jest.config.js on lines 1..8
packages/fela-plugin-validator/jest.config.js on lines 1..8
packages/fela-preset-dev/jest.config.js on lines 1..8
packages/fela-preset-web/jest.config.js on lines 1..8
packages/fela-sort-classnames/jest.config.js on lines 1..8
packages/fela-sort-media-query-mobile-first/jest.config.js on lines 1..8
packages/fela-utils/jest.config.js on lines 1..8
packages/fela-plugin-fallback-value/jest.config.js on lines 1..8
packages/fela-plugin-typescript/jest.config.js on lines 1..8
packages/fela/jest.config.js on lines 1..8

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

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