rofrischmann/inline-style-prefixer

View on GitHub

Showing 397 of 397 total issues

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

function calc(property, value) {
  if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('calc(') > -1) {
    return prefixes.map(function (prefix) {
      return value.replace(/calc\(/g, prefix + 'calc(');
    });
Severity: Major
Found in benchmark/packages/301/static/plugins/calc.js and 15 other locations - About 2 hrs to fix
benchmark/packages/300/static/plugins/calc.js on lines 15..21
benchmark/packages/300/static/plugins/crossFade.js on lines 16..22
benchmark/packages/300/static/plugins/filter.js on lines 16..22
benchmark/packages/300/static/plugins/imageSet.js on lines 16..22
benchmark/packages/301/static/plugins/crossFade.js on lines 16..22
benchmark/packages/301/static/plugins/filter.js on lines 16..22
benchmark/packages/301/static/plugins/imageSet.js on lines 16..22
benchmark/packages/302/static/plugins/calc.js on lines 15..21
benchmark/packages/302/static/plugins/crossFade.js on lines 16..22
benchmark/packages/302/static/plugins/filter.js on lines 16..22
benchmark/packages/302/static/plugins/imageSet.js on lines 16..22
benchmark/packages/700/plugins/calc.js on lines 15..21
benchmark/packages/700/plugins/crossFade.js on lines 16..22
benchmark/packages/700/plugins/filter.js on lines 16..22
benchmark/packages/700/plugins/imageSet.js on lines 16..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 91.

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

function calc(property, value) {
  if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('calc(') > -1) {
    return prefixes.map(function (prefix) {
      return value.replace(/calc\(/g, prefix + 'calc(');
    });
Severity: Major
Found in benchmark/packages/300/static/plugins/calc.js and 15 other locations - About 2 hrs to fix
benchmark/packages/300/static/plugins/crossFade.js on lines 16..22
benchmark/packages/300/static/plugins/filter.js on lines 16..22
benchmark/packages/300/static/plugins/imageSet.js on lines 16..22
benchmark/packages/301/static/plugins/calc.js on lines 15..21
benchmark/packages/301/static/plugins/crossFade.js on lines 16..22
benchmark/packages/301/static/plugins/filter.js on lines 16..22
benchmark/packages/301/static/plugins/imageSet.js on lines 16..22
benchmark/packages/302/static/plugins/calc.js on lines 15..21
benchmark/packages/302/static/plugins/crossFade.js on lines 16..22
benchmark/packages/302/static/plugins/filter.js on lines 16..22
benchmark/packages/302/static/plugins/imageSet.js on lines 16..22
benchmark/packages/700/plugins/calc.js on lines 15..21
benchmark/packages/700/plugins/crossFade.js on lines 16..22
benchmark/packages/700/plugins/filter.js on lines 16..22
benchmark/packages/700/plugins/imageSet.js on lines 16..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 91.

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

Function createPrefixer has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

function createPrefixer(_ref) {
  var prefixMap = _ref.prefixMap,
      plugins = _ref.plugins;

  function prefixAll(style) {
Severity: Minor
Found in benchmark/packages/302/static/createPrefixer.js - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function createPrefixer has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

export default function createPrefixer({ prefixMap, plugins }) {
  return function prefix(style) {
    for (const property in style) {
      const value = style[property]

Severity: Minor
Found in modules/createPrefixer.js - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function createPrefixer has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

function createPrefixer(_ref) {
  var prefixMap = _ref.prefixMap,
      plugins = _ref.plugins;

  return function prefix(style) {
Severity: Minor
Found in benchmark/packages/700/createPrefixer.js - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function createPrefixer has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

function createPrefixer(_ref) {
  var prefixMap = _ref.prefixMap,
      plugins = _ref.plugins;

  function prefixAll(style) {
Severity: Minor
Found in benchmark/packages/301/static/createPrefixer.js - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function createPrefixer has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

function createPrefixer(_ref) {
  var prefixMap = _ref.prefixMap,
      plugins = _ref.plugins;

  function prefixAll(style) {
Severity: Minor
Found in benchmark/packages/300/static/createPrefixer.js - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Consider simplifying this complex logical expression.
Open

  if (property === 'display' && values[value] && (browser === 'chrome' && version < 29 && version > 20 || (browser === 'safari' || browser === 'ios_saf') && version < 9 && version > 6 || browser === 'opera' && (version == 15 || version == 16))) {
    return {
      display: (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed)
    };
  }
Severity: Critical
Found in benchmark/packages/205/plugins/flex.js - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

      if (property === 'display' && values[value] && (browserName === 'chrome' && browserVersion < 29 && browserVersion > 20 || (browserName === 'safari' || browserName === 'ios_saf') && browserVersion < 9 && browserVersion > 6 || browserName === 'opera' && (browserVersion === 15 || browserVersion === 16))) {
        return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed);
      }
    Severity: Critical
    Found in benchmark/packages/302/dynamic/plugins/flex.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

        if (property === 'display' && values[value] && (browserName === 'chrome' && browserVersion < 29 && browserVersion > 20 || (browserName === 'safari' || browserName === 'ios_saf') && browserVersion < 9 && browserVersion > 6 || browserName === 'opera' && (browserVersion === 15 || browserVersion === 16))) {
          return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed);
        }
      Severity: Critical
      Found in benchmark/packages/301/dynamic/plugins/flex.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

          if (property === 'display' && values[value] && (browserName === 'chrome' && browserVersion < 29 && browserVersion > 20 || (browserName === 'safari' || browserName === 'ios_saf') && browserVersion < 9 && browserVersion > 6 || browserName === 'opera' && (browserVersion === 15 || browserVersion === 16))) {
            return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed);
          }
        Severity: Critical
        Found in benchmark/packages/300/dynamic/plugins/flex.js - About 2 hrs to fix

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

          function sizing(property, value, style, _ref) {
            var cssPrefix = _ref.cssPrefix,
                keepUnprefixed = _ref.keepUnprefixed;
          
            // This might change in the future
          Severity: Major
          Found in benchmark/packages/301/dynamic/plugins/sizing.js and 1 other location - About 2 hrs to fix
          benchmark/packages/302/dynamic/plugins/sizing.js on lines 33..42

          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

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

          function sizing(property, value, style, _ref) {
            var cssPrefix = _ref.cssPrefix,
                keepUnprefixed = _ref.keepUnprefixed;
          
            // This might change in the future
          Severity: Major
          Found in benchmark/packages/302/dynamic/plugins/sizing.js and 1 other location - About 2 hrs to fix
          benchmark/packages/301/dynamic/plugins/sizing.js on lines 33..42

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

          export default function filter(property, value) {
            if (
              typeof value === 'string' &&
              !isPrefixedValue(value) &&
              value.indexOf('filter(') !== -1
          Severity: Major
          Found in modules/plugins/filter.js and 2 other locations - About 2 hrs to fix
          modules/plugins/calc.js on lines 6..14
          modules/plugins/crossFade.js on lines 7..17

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 86.

          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 function calc(property, value) {
            if (
              typeof value === 'string' &&
              !isPrefixedValue(value) &&
              value.indexOf('calc(') !== -1
          Severity: Major
          Found in modules/plugins/calc.js and 2 other locations - About 2 hrs to fix
          modules/plugins/crossFade.js on lines 7..17
          modules/plugins/filter.js on lines 7..17

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 86.

          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