rofrischmann/inline-style-prefixer

View on GitHub
modules/__tests__/createPrefixer-test.js

Summary

Maintainability
F
1 wk
Test Coverage

File createPrefixer-test.js has 534 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import createPrefixer from '../createPrefixer'
import generateData from '../generator'
import plugins from '../plugins'

const browserList = {
Severity: Major
Found in modules/__tests__/createPrefixer-test.js - About 1 day to fix

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

        it('should prefix css logical properties', () => {
          const input = {
            marginInlineStart: '1px',
          }
          const output = {
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 4 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 148..157
    modules/__tests__/createPrefixer-test.js on lines 242..256
    modules/__tests__/createPrefixer-test.js on lines 258..272
    modules/__tests__/createPrefixer-test.js on lines 274..283

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

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

        it('should prefix every property within transition values', () => {
          const input = {
            transition: '200ms linear appearance, 100ms linear width',
          }
          const output = {
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 4 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 148..157
    modules/__tests__/createPrefixer-test.js on lines 190..201
    modules/__tests__/createPrefixer-test.js on lines 258..272
    modules/__tests__/createPrefixer-test.js on lines 274..283

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

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

        it('should not resolve alternative values on alignSelf', () => {
          const input = { alignSelf: 'flex-start' }
          const output = {
            msFlexItemAlign: 'start',
            WebkitAlignSelf: 'flex-start',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 4 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 190..201
    modules/__tests__/createPrefixer-test.js on lines 242..256
    modules/__tests__/createPrefixer-test.js on lines 258..272
    modules/__tests__/createPrefixer-test.js on lines 274..283

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

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

        it('should prefix transition values with border', () => {
          const input = { transition: 'border 500ms linear' }
          const output = {
            WebkitTransition: 'border 500ms linear',
            MozTransition: 'border 500ms linear',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 4 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 148..157
    modules/__tests__/createPrefixer-test.js on lines 190..201
    modules/__tests__/createPrefixer-test.js on lines 242..256
    modules/__tests__/createPrefixer-test.js on lines 258..272

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

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

        it('should prefix transitions with cubic beziers', () => {
          const input = {
            transition: 'transform 0.4s cubic-bezier(0.065, 1.360, 0.680, 1.000)',
          }
          const output = {
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 4 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 148..157
    modules/__tests__/createPrefixer-test.js on lines 190..201
    modules/__tests__/createPrefixer-test.js on lines 242..256
    modules/__tests__/createPrefixer-test.js on lines 274..283

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

    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 add all inline flexbox display types', () => {
          const input = { display: 'inline-flex' }
          const output = {
            display: [
              '-webkit-inline-box',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 203..216

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

    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 add all flexbox display types', () => {
          const input = { display: 'flex' }
          const output = {
            display: [
              '-webkit-box',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 218..231

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

    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 prefix writingMode', () => {
          const input = { writingMode: 'horizontal-tb' }
          const output = {
            WebkitWritingMode: 'horizontal-tb',
            writingMode: 'horizontal-tb',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 366..375

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

    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 prefix textOrientation', () => {
          const input = { textOrientation: 'upright' }
          const output = {
            WebkitTextOrientation: 'upright',
            textOrientation: 'upright',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 356..364

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

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

        it('should prefix calc expressions', () => {
          const input = { width: 'calc(30px)' }
          const output = {
            width: ['-webkit-calc(30px)', '-moz-calc(30px)', 'calc(30px)'],
          }
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 5 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 98..103
    modules/__tests__/createPrefixer-test.js on lines 159..172
    modules/__tests__/createPrefixer-test.js on lines 174..188
    modules/__tests__/createPrefixer-test.js on lines 233..240
    modules/__tests__/createPrefixer-test.js on lines 347..354

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

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

        it('should prefix calc values', () => {
          const input = { width: 'calc(100%)' }
          const output = {
            width: ['-webkit-calc(100%)', '-moz-calc(100%)', 'calc(100%)'],
          }
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 5 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 89..96
    modules/__tests__/createPrefixer-test.js on lines 98..103
    modules/__tests__/createPrefixer-test.js on lines 159..172
    modules/__tests__/createPrefixer-test.js on lines 174..188
    modules/__tests__/createPrefixer-test.js on lines 233..240

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

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

        it('should correctly prefix gradients within multi-values', () => {
          const input = {
            background:
              'url("https://foo.bar"), linear-gradient(to bottom right, red, yellow)',
          }
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 5 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 89..96
    modules/__tests__/createPrefixer-test.js on lines 98..103
    modules/__tests__/createPrefixer-test.js on lines 159..172
    modules/__tests__/createPrefixer-test.js on lines 233..240
    modules/__tests__/createPrefixer-test.js on lines 347..354

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

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

        it('should prefix special sizing values', () => {
          const input = { width: 'min-content' }
          const output = {
            width: ['-webkit-min-content', '-moz-min-content', 'min-content'],
          }
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 5 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 89..96
    modules/__tests__/createPrefixer-test.js on lines 98..103
    modules/__tests__/createPrefixer-test.js on lines 159..172
    modules/__tests__/createPrefixer-test.js on lines 174..188
    modules/__tests__/createPrefixer-test.js on lines 347..354

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

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

        it('should prefix special cursor values', () => {
          const input = { cursor: 'zoom-in' }
          const output = { cursor: ['-webkit-zoom-in', '-moz-zoom-in', 'zoom-in'] }
          expect(prefix(input)).toEqual(output)
          expect(prefix(input)).toEqual(output)
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 5 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 89..96
    modules/__tests__/createPrefixer-test.js on lines 159..172
    modules/__tests__/createPrefixer-test.js on lines 174..188
    modules/__tests__/createPrefixer-test.js on lines 233..240
    modules/__tests__/createPrefixer-test.js on lines 347..354

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

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

        it('should prefix gradients', () => {
          const input = {
            background: 'linear-gradient(to bottom right, red, yellow)',
          }
          const output = {
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 5 other locations - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 89..96
    modules/__tests__/createPrefixer-test.js on lines 98..103
    modules/__tests__/createPrefixer-test.js on lines 174..188
    modules/__tests__/createPrefixer-test.js on lines 233..240
    modules/__tests__/createPrefixer-test.js on lines 347..354

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

    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 prefix a cell with numerical start and end column values', () => {
              const input = { gridColumnStart: 2, gridColumnEnd: 5 }
              const output = {
                gridColumnEnd: 5,
                gridColumnStart: 2,
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 509..518

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

    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 prefix a cell with numerical start and end row values', () => {
              const input = { gridRowStart: 3, gridRowEnd: 7 }
              const output = {
                gridRowEnd: 7,
                gridRowStart: 3,
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 2 hrs to fix
    modules/__tests__/createPrefixer-test.js on lines 498..507

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

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

          it('should expand single united values', () => {
            const input = { flex: '1px' }
            const output = {
              flex: '1px',
              MozFlex: '1px',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 38..47
    modules/__tests__/createPrefixer-test.js on lines 378..387
    modules/__tests__/createPrefixer-test.js on lines 389..398
    modules/__tests__/createPrefixer-test.js on lines 411..420
    modules/__tests__/createPrefixer-test.js on lines 422..431
    modules/__tests__/createPrefixer-test.js on lines 433..442

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

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

          it('should expand flex-grow + flex-basis', () => {
            const input = { flex: '0 30px' }
            const output = {
              flex: '0 30px',
              MozFlex: '0 30px',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 38..47
    modules/__tests__/createPrefixer-test.js on lines 378..387
    modules/__tests__/createPrefixer-test.js on lines 389..398
    modules/__tests__/createPrefixer-test.js on lines 400..409
    modules/__tests__/createPrefixer-test.js on lines 411..420
    modules/__tests__/createPrefixer-test.js on lines 422..431

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

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

          it('should expand basic values', () => {
            const input = { flex: 'auto' }
            const output = {
              flex: 'auto',
              MozFlex: 'auto',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 38..47
    modules/__tests__/createPrefixer-test.js on lines 389..398
    modules/__tests__/createPrefixer-test.js on lines 400..409
    modules/__tests__/createPrefixer-test.js on lines 411..420
    modules/__tests__/createPrefixer-test.js on lines 422..431
    modules/__tests__/createPrefixer-test.js on lines 433..442

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

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

        it('should add all prefixes', () => {
          const input = { userSelect: 'none' }
          const output = {
            WebkitUserSelect: 'none',
            MozUserSelect: 'none',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 378..387
    modules/__tests__/createPrefixer-test.js on lines 389..398
    modules/__tests__/createPrefixer-test.js on lines 400..409
    modules/__tests__/createPrefixer-test.js on lines 411..420
    modules/__tests__/createPrefixer-test.js on lines 422..431
    modules/__tests__/createPrefixer-test.js on lines 433..442

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

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

          it('should expand singular flex-grow', () => {
            const input = { flex: '1.1' }
            const output = {
              flex: '1.1',
              MozFlex: '1.1',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 38..47
    modules/__tests__/createPrefixer-test.js on lines 378..387
    modules/__tests__/createPrefixer-test.js on lines 400..409
    modules/__tests__/createPrefixer-test.js on lines 411..420
    modules/__tests__/createPrefixer-test.js on lines 422..431
    modules/__tests__/createPrefixer-test.js on lines 433..442

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

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

          it('should expand flex-grow + flex-shrink', () => {
            const input = { flex: '1 3' }
            const output = {
              flex: '1 3',
              MozFlex: '1 3',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 38..47
    modules/__tests__/createPrefixer-test.js on lines 378..387
    modules/__tests__/createPrefixer-test.js on lines 389..398
    modules/__tests__/createPrefixer-test.js on lines 400..409
    modules/__tests__/createPrefixer-test.js on lines 422..431
    modules/__tests__/createPrefixer-test.js on lines 433..442

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

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

          it('should pass through 3 values', () => {
            const input = { flex: '2 2 10%' }
            const output = {
              flex: '2 2 10%',
              MozFlex: '2 2 10%',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 6 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 38..47
    modules/__tests__/createPrefixer-test.js on lines 378..387
    modules/__tests__/createPrefixer-test.js on lines 389..398
    modules/__tests__/createPrefixer-test.js on lines 400..409
    modules/__tests__/createPrefixer-test.js on lines 411..420
    modules/__tests__/createPrefixer-test.js on lines 433..442

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

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

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

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

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

    Refactorings

    Further Reading

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

            it('should expand the shorthand column syntax', () => {
              const input = { gridColumn: '3 / 5' }
              const output = {
                gridColumn: '3 / 5',
                msGridColumn: 3,
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 3 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 539..547
    modules/__tests__/createPrefixer-test.js on lines 549..557
    modules/__tests__/createPrefixer-test.js on lines 559..567

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

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

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

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

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

    Refactorings

    Further Reading

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

            it('should expand the shorthand column syntax with span', () => {
              const input = { gridColumn: '3 / span 1' }
              const output = {
                gridColumn: '3 / span 1',
                msGridColumn: 3,
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 3 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 529..537
    modules/__tests__/createPrefixer-test.js on lines 549..557
    modules/__tests__/createPrefixer-test.js on lines 559..567

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

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

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

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

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

    Refactorings

    Further Reading

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

            it('should expand the shorthand row syntax', () => {
              const input = { gridRow: '2 / 7' }
              const output = {
                gridRow: '2 / 7',
                msGridRow: 2,
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 3 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 529..537
    modules/__tests__/createPrefixer-test.js on lines 539..547
    modules/__tests__/createPrefixer-test.js on lines 559..567

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

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

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

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

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

    Refactorings

    Further Reading

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

            it('should expand the shorthand row syntax with span', () => {
              const input = { gridRow: '2 / span 3' }
              const output = {
                gridRow: '2 / span 3',
                msGridRow: 2,
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 3 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 529..537
    modules/__tests__/createPrefixer-test.js on lines 539..547
    modules/__tests__/createPrefixer-test.js on lines 549..557

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

    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

            it('should prefix row templating', () => {
              const input = { gridTemplateRows: '1fr auto' }
              const output = {
                gridTemplateRows: '1fr auto',
                msGridRows: '1fr auto',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 2 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 469..476
    modules/__tests__/createPrefixer-test.js on lines 487..494

    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

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

            it('should prefix templating even with named grid lines', () => {
              const input = { gridTemplateColumns: '1fr [header content] auto' }
              const output = {
                gridTemplateColumns: '1fr [header content] auto',
                msGridColumns: '1fr [header content] auto',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 2 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 469..476
    modules/__tests__/createPrefixer-test.js on lines 478..485

    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

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

            it('should prefix column templating', () => {
              const input = { gridTemplateColumns: '1fr auto' }
              const output = {
                gridTemplateColumns: '1fr auto',
                msGridColumns: '1fr auto',
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 2 other locations - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 478..485
    modules/__tests__/createPrefixer-test.js on lines 487..494

    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

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

            it('should expand the shorthand gridRow without a slash', () => {
              const input = { gridRow: 'span 3' }
              const output = {
                gridRow: 'span 3',
              }
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 576..582

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 58.

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

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

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

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

    Refactorings

    Further Reading

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

            it('should expand the shorthand gridColumn without a slash', () => {
              const input = { gridColumn: 'span 3' }
              const output = {
                gridColumn: 'span 3',
              }
    Severity: Major
    Found in modules/__tests__/createPrefixer-test.js and 1 other location - About 1 hr to fix
    modules/__tests__/createPrefixer-test.js on lines 569..575

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 58.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status