medialize/ally.js

View on GitHub
test/unit/is.tabbable.test.js

Summary

Maintainability
F
1 wk
Test Coverage

File is.tabbable.test.js has 311 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define(function(require) {
  'use strict';

  var bdd = require('intern!bdd');
  var expect = require('intern/chai!expect');
Severity: Minor
Found in test/unit/is.tabbable.test.js - About 3 hrs to fix

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

        bdd.describe('for <input>', function() {
          bdd.it('should return true for <input>', function() {
            var element = document.getElementById('input');
            expect(isFocusableAndTabbable(element)).to.equal(true);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 day to fix
    test/unit/is.focus-relevant.test.js on lines 106..131
    test/unit/is.focusable.test.js on lines 106..131
    test/unit/is.only-tabbable.test.js on lines 68..93
    test/unit/is.only-tabbable.test.js on lines 112..137

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

    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

        bdd.describe('for document structure', function() {
          bdd.it('should return false for document', function() {
            expect(isFocusableAndTabbable(document)).to.equal(false);
          });
    
    
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 5 other locations - About 7 hrs to fix
    test/unit/is.focus-relevant.test.js on lines 44..60
    test/unit/is.focusable.test.js on lines 44..60
    test/unit/is.only-tabbable.test.js on lines 50..66
    test/unit/is.shadowed.test.js on lines 27..43
    test/unit/is.valid-tabindex.test.js on lines 38..54

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

    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

        bdd.describe('for <embed>', function() {
          bdd.before(function() {
            var element = document.getElementById('embed');
            if (!element) {
              this.skip('skipping to avoid test colliding with QuickTime');
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 3 other locations - About 7 hrs to fix
    test/unit/is.focus-relevant.test.js on lines 243..260
    test/unit/is.focusable.test.js on lines 255..272
    test/unit/is.only-tabbable.test.js on lines 249..266

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

    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

        bdd.describe('for CSS Flexbox Layout', function() {
          bdd.before(function() {
            fixture.add([
              /* eslint-disable indent */
              '<div id="flexbox-parent" style="display: -webkit-flex; display: -ms-flexbox; display: flex;">',
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 1 other location - About 6 hrs to fix
    test/unit/is.only-tabbable.test.js on lines 285..305

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

    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

        bdd.it('should provide .rules() and .except()', function() {
          var element = document.getElementById('input');
          expect(isTabbable.rules({
            context: element,
          })).to.equal(true, '.rules()');
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 3 hrs to fix
    test/unit/is.focus-relevant.test.js on lines 35..42
    test/unit/is.focusable.test.js on lines 35..42
    test/unit/is.only-tabbable.test.js on lines 41..48
    test/unit/is.visible.test.js on lines 100..107

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

    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

        bdd.it('should handle invalid input', function() {
          expect(function() {
            isTabbable(null);
          }).to.throw(TypeError, 'is/tabbable requires valid options.context');
    
    
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 2 hrs to fix
    test/unit/is.focus-relevant.test.js on lines 25..33
    test/unit/is.focusable.test.js on lines 25..33
    test/unit/is.only-tabbable.test.js on lines 31..39
    test/unit/is.visible.test.js on lines 90..98

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

          bdd.it('should return false for scrollable elements with except.scrollable', function() {
            var element = document.getElementById('scroll-container');
            var result = isTabbable.rules({
              context: element,
              except: {
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 3 other locations - About 2 hrs to fix
    test/unit/is.focusable.test.js on lines 225..235
    test/unit/is.focusable.test.js on lines 290..300
    test/unit/is.focusable.test.js on lines 324..334

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

          bdd.it('should return {browser-specific} for <svg tabindex="-1">', function() {
            var element = document.getElementById('svg');
            element.setAttribute('tabindex', '-1');
            expect(isFocusableAndTabbable(element)).to.equal(supports.focusingSvgElements && supports.focusSvg);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 2 other locations - About 2 hrs to fix
    test/unit/is.focus-relevant.test.js on lines 152..156
    test/unit/is.focus-relevant.test.js on lines 214..218

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

    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

          bdd.it('should return {browser-specific} for <label tabindex="0">', function() {
            var element = document.getElementById('label');
            element.setAttribute('tabindex', '0');
            expect(isFocusableAndTabbable(element)).to.equal(supports.focusLabelTabindex);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 hr to fix
    test/unit/is.focusable.test.js on lines 152..156
    test/unit/is.focusable.test.js on lines 170..174
    test/unit/is.focusable.test.js on lines 183..187
    test/unit/is.focusable.test.js on lines 189..193

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

    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

          bdd.it('should return {browser-specific} for <svg>', function() {
            var element = document.getElementById('svg');
            expect(isFocusableAndTabbable(element)).to.equal(supports.focusingSvgElements && supports.focusSvg);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 1 other location - About 1 hr to fix
    test/unit/is.focusable.test.js on lines 209..212

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 67.

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

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

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

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

    Refactorings

    Further Reading

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

        bdd.before(function() {
          var deferred = this.async(10000);
          fixture = focusableFixture();
          // NOTE: Firefox decodes DataURIs asynchronously
          setTimeout(deferred.resolve, 200);
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 6 other locations - About 1 hr to fix
    test/unit/is.focus-relevant.test.js on lines 13..18
    test/unit/is.focusable.test.js on lines 13..18
    test/unit/query.focusable.all.test.js on lines 14..19
    test/unit/query.focusable.strict.test.js on lines 14..19
    test/unit/query.focusable.test.js on lines 15..20
    test/unit/query.tabbable.test.js on lines 14..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 57.

    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

          bdd.it('should return {browser-specific} for <audio controls>', function() {
            var element = document.getElementById('audio-controls');
            expect(isFocusableAndTabbable(element)).to.equal(trueUnlessPlatform);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 hr to fix
    test/unit/is.tabbable.test.js on lines 81..84
    test/unit/is.tabbable.test.js on lines 86..89
    test/unit/is.tabbable.test.js on lines 103..106
    test/unit/is.tabbable.test.js on lines 190..193

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

    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

          bdd.it('should return {browser-specific} for <area>', function() {
            var element = document.getElementById('image-map-area');
            expect(isFocusableAndTabbable(element)).to.equal(trueUnlessPlatform);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 hr to fix
    test/unit/is.tabbable.test.js on lines 81..84
    test/unit/is.tabbable.test.js on lines 86..89
    test/unit/is.tabbable.test.js on lines 103..106
    test/unit/is.tabbable.test.js on lines 222..225

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

    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

          bdd.it('should return {browser-specific} for <a href="…">', function() {
            var element = document.getElementById('link');
            expect(isFocusableAndTabbable(element)).to.equal(trueUnlessPlatform);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 hr to fix
    test/unit/is.tabbable.test.js on lines 81..84
    test/unit/is.tabbable.test.js on lines 86..89
    test/unit/is.tabbable.test.js on lines 190..193
    test/unit/is.tabbable.test.js on lines 222..225

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

    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

          bdd.it('should return {browser-specific} for <div tabindex="1">', function() {
            var element = document.getElementById('tabindex-1');
            expect(isFocusableAndTabbable(element)).to.equal(trueUnlessPlatform);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 hr to fix
    test/unit/is.tabbable.test.js on lines 81..84
    test/unit/is.tabbable.test.js on lines 103..106
    test/unit/is.tabbable.test.js on lines 190..193
    test/unit/is.tabbable.test.js on lines 222..225

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

    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

          bdd.it('should return {browser-specific} for <div tabindex="0">', function() {
            var element = document.getElementById('tabindex-0');
            expect(isFocusableAndTabbable(element)).to.equal(trueUnlessPlatform);
          });
    Severity: Major
    Found in test/unit/is.tabbable.test.js and 4 other locations - About 1 hr to fix
    test/unit/is.tabbable.test.js on lines 86..89
    test/unit/is.tabbable.test.js on lines 103..106
    test/unit/is.tabbable.test.js on lines 190..193
    test/unit/is.tabbable.test.js on lines 222..225

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

    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

    Unexpected '!' in 'intern/chai!expect'. Do not use import syntax to configure webpack loaders.
    Open

      var expect = require('intern/chai!expect');
    Severity: Minor
    Found in test/unit/is.tabbable.test.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Unexpected '!' in 'intern!bdd'. Do not use import syntax to configure webpack loaders.
    Open

      var bdd = require('intern!bdd');
    Severity: Minor
    Found in test/unit/is.tabbable.test.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status