medialize/ally.js

View on GitHub

Showing 736 of 736 total issues

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

        return this.remote
          .findById('second')
            .click()
            .end()

Severity: Minor
Found in test/functional/intern.events.debug.js and 1 other location - About 40 mins to fix
test/functional/intern.events.debug.js on lines 198..206

Duplicated Code

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

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

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

Tuning

This issue has a mass of 48.

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

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

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

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

Refactorings

Further Reading

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

        return this.remote
          .findById('first')
            .click()
            .end()

Severity: Minor
Found in test/functional/intern.events.debug.js and 1 other location - About 40 mins to fix
test/functional/intern.events.debug.js on lines 215..223

Duplicated Code

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

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

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

Tuning

This issue has a mass of 48.

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

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

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

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

Refactorings

Further Reading

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

function isTabbableRules({
  context,
  except = {
    flexbox: false,
    scrollable: false,
Severity: Minor
Found in src/is/tabbable.js and 1 other location - About 40 mins to fix
src/is/visible.js on lines 70..120

Duplicated Code

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

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

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

Tuning

This issue has a mass of 48.

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

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

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

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

Refactorings

Further Reading

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

function isVisibleRules({
  context,
  except = {
    notRendered: false,
    cssDisplay: false,
Severity: Minor
Found in src/is/visible.js and 1 other location - About 40 mins to fix
src/is/tabbable.js on lines 26..273

Duplicated Code

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

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

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

Tuning

This issue has a mass of 48.

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

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

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

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

Refactorings

Further Reading

Function readableLabel has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function readableLabel(focusable, tabbable, onlyTabbable, redirecting, focusHost) {
Severity: Minor
Found in build/data-tables/utils/aggregated-focusable-data.js - About 35 mins to fix

    Function default has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    export default function(elements) {
      // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.tabIndex
      // elements with tabIndex "0" (including tabbableElements without tabIndex) should be navigated in the order they appear.
      // elements with a positive tabIndex:
      //   Elements that have identical tabIndexes should be navigated in the order they appear.
    Severity: Minor
    Found in src/query/tabsequence.sort-tabindex.js - About 35 mins 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 default has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    export default function({element, attribute, temporaryValue, saveValue}) {
      const temporaryAttribute = 'data-cached-' + attribute;
    
      if (temporaryValue !== undefined) {
        const _value = saveValue || element.getAttribute(attribute);
    Severity: Minor
    Found in src/util/toggle-attribute-value.js - About 35 mins 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 default has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    export default function() {
      if (!supports) {
        supports = _supports();
      }
    
    
    Severity: Minor
    Found in src/selector/focusable.js - About 35 mins 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 default has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    export default function({
      context,
      sequence,
      strategy,
      ignoreAutofocus,
    Severity: Minor
    Found in src/query/first-tabbable.js - About 35 mins 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 addPlatform has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    function addPlatform(platform, key) {
      // only to be used for grouping desktop and mobile browsers separately
      let mobile = false;
      // "Windows" needs some aliasing, possibly required for other platforms, too
      const platformFamily = (platform.os.family === 'Windows NT' && 'Windows')
    Severity: Minor
    Found in build/data-tables/utils/platforms.js - About 35 mins 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

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

          var decorated = decorateService({
            engage: function() {
              engaged = true;
            },
            disengage: function() {
    Severity: Major
    Found in test/unit/util.decorate-service.test.js and 3 other locations - About 35 mins to fix
    test/unit/util.decorate-service.test.js on lines 11..18
    test/unit/util.decorate-service.test.js on lines 93..100
    test/unit/util.decorate-service.test.js on lines 114..121

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

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

          bdd.before(function() {
            if (document.body.createShadowRoot === undefined) {
              this.skip('ShadowDOM is not supported');
            }
          });
    Severity: Major
    Found in test/unit/is.shadowed.test.js and 6 other locations - About 35 mins to fix
    test/unit/observe.shadow-mutations.test.js on lines 87..91
    test/unit/query.focusable.all.test.js on lines 145..149
    test/unit/query.focusable.strict.test.js on lines 182..186
    test/unit/query.focusable.test.js on lines 163..167
    test/unit/query.shadow-hosts.test.js on lines 39..43
    test/unit/query.tabsequence.test.js on lines 176..180

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

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

          bdd.before(function() {
            if (document.body.createShadowRoot === undefined) {
              this.skip('ShadowDOM is not supported');
            }
          });
    Severity: Major
    Found in test/unit/query.tabsequence.test.js and 6 other locations - About 35 mins to fix
    test/unit/is.shadowed.test.js on lines 52..56
    test/unit/observe.shadow-mutations.test.js on lines 87..91
    test/unit/query.focusable.all.test.js on lines 145..149
    test/unit/query.focusable.strict.test.js on lines 182..186
    test/unit/query.focusable.test.js on lines 163..167
    test/unit/query.shadow-hosts.test.js on lines 39..43

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

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

          bdd.before(function() {
            if (document.body.createShadowRoot === undefined) {
              this.skip('ShadowDOM is not supported');
            }
          });
    Severity: Major
    Found in test/unit/query.focusable.strict.test.js and 6 other locations - About 35 mins to fix
    test/unit/is.shadowed.test.js on lines 52..56
    test/unit/observe.shadow-mutations.test.js on lines 87..91
    test/unit/query.focusable.all.test.js on lines 145..149
    test/unit/query.focusable.test.js on lines 163..167
    test/unit/query.shadow-hosts.test.js on lines 39..43
    test/unit/query.tabsequence.test.js on lines 176..180

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

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

            bdd.before(function() {
              if (document.body.createShadowRoot === undefined) {
                this.skip('ShadowDOM is not supported');
              }
            });
    Severity: Major
    Found in test/unit/observe.shadow-mutations.test.js and 6 other locations - About 35 mins to fix
    test/unit/is.shadowed.test.js on lines 52..56
    test/unit/query.focusable.all.test.js on lines 145..149
    test/unit/query.focusable.strict.test.js on lines 182..186
    test/unit/query.focusable.test.js on lines 163..167
    test/unit/query.shadow-hosts.test.js on lines 39..43
    test/unit/query.tabsequence.test.js on lines 176..180

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

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

          var decorated = decorateService({
            engage: function() {
              engaged = true;
            },
            disengage: function() {
    Severity: Major
    Found in test/unit/util.decorate-service.test.js and 3 other locations - About 35 mins to fix
    test/unit/util.decorate-service.test.js on lines 70..77
    test/unit/util.decorate-service.test.js on lines 93..100
    test/unit/util.decorate-service.test.js on lines 114..121

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

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

          bdd.before(function() {
            if (document.body.createShadowRoot === undefined) {
              this.skip('ShadowDOM is not supported');
            }
          });
    Severity: Major
    Found in test/unit/query.focusable.test.js and 6 other locations - About 35 mins to fix
    test/unit/is.shadowed.test.js on lines 52..56
    test/unit/observe.shadow-mutations.test.js on lines 87..91
    test/unit/query.focusable.all.test.js on lines 145..149
    test/unit/query.focusable.strict.test.js on lines 182..186
    test/unit/query.shadow-hosts.test.js on lines 39..43
    test/unit/query.tabsequence.test.js on lines 176..180

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

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

          bdd.before(function() {
            if (document.body.createShadowRoot === undefined) {
              this.skip('ShadowDOM is not supported');
            }
          });
    Severity: Major
    Found in test/unit/query.shadow-hosts.test.js and 6 other locations - About 35 mins to fix
    test/unit/is.shadowed.test.js on lines 52..56
    test/unit/observe.shadow-mutations.test.js on lines 87..91
    test/unit/query.focusable.all.test.js on lines 145..149
    test/unit/query.focusable.strict.test.js on lines 182..186
    test/unit/query.focusable.test.js on lines 163..167
    test/unit/query.tabsequence.test.js on lines 176..180

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

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

          var decorated = decorateService({
            engage: function() {
              engaged = true;
            },
            disengage: function() {
    Severity: Major
    Found in test/unit/util.decorate-service.test.js and 3 other locations - About 35 mins to fix
    test/unit/util.decorate-service.test.js on lines 11..18
    test/unit/util.decorate-service.test.js on lines 70..77
    test/unit/util.decorate-service.test.js on lines 114..121

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

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

          var decorated = decorateService({
            engage: function() {
              engaged = true;
            },
            disengage: function() {
    Severity: Major
    Found in test/unit/util.decorate-service.test.js and 3 other locations - About 35 mins to fix
    test/unit/util.decorate-service.test.js on lines 11..18
    test/unit/util.decorate-service.test.js on lines 70..77
    test/unit/util.decorate-service.test.js on lines 93..100

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

    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