medialize/ally.js

View on GitHub

Showing 736 of 736 total issues

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

      bdd.it('should return 0 for element with tabindex="0"', function() {
        var element = document.getElementById('tabindex-0');
        var result = tabindexValue(element);
        expect(result).to.equal(0);
      });
Severity: Major
Found in test/unit/util.tabindex-value.test.js and 2 other locations - About 1 hr to fix
test/unit/util.tabindex-value.test.js on lines 73..77
test/unit/util.tabindex-value.test.js on lines 79..83

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

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 2 for element with tabindex="2"', function() {
        var element = document.getElementById('tabindex-2');
        var result = tabindexValue(element);
        expect(result).to.equal(2);
      });
Severity: Major
Found in test/unit/util.tabindex-value.test.js and 2 other locations - About 1 hr to fix
test/unit/util.tabindex-value.test.js on lines 67..71
test/unit/util.tabindex-value.test.js on lines 73..77

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

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

    bdd.it('should return false for <div>', function() {
      var element = document.getElementById('non-input');
      var res = isNativeDisabledSupported(element);
      expect(res).to.equal(false);
    });
Severity: Major
Found in test/unit/is.native-disabled-supported.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 45..49
test/unit/is.disabled.test.js on lines 58..62
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 72..76
test/unit/is.disabled.test.js on lines 78..82
test/unit/is.disabled.test.js on lines 92..96
test/unit/is.native-disabled-supported.test.js on lines 46..50

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

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

      bdd.it('should return true for <fieldset disabled> <input>', function() {
        var element = document.getElementById('disabled-fieldset-input');
        var res = isDisabled(element);
        expect(res).to.equal(true);
      });
Severity: Major
Found in test/unit/is.disabled.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 45..49
test/unit/is.disabled.test.js on lines 58..62
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 72..76
test/unit/is.disabled.test.js on lines 92..96
test/unit/is.native-disabled-supported.test.js on lines 40..44
test/unit/is.native-disabled-supported.test.js on lines 46..50

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

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 1 for element with tabindex="1"', function() {
        var element = document.getElementById('tabindex-1');
        var result = tabindexValue(element);
        expect(result).to.equal(1);
      });
Severity: Major
Found in test/unit/util.tabindex-value.test.js and 2 other locations - About 1 hr to fix
test/unit/util.tabindex-value.test.js on lines 67..71
test/unit/util.tabindex-value.test.js on lines 79..83

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

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

      bdd.it('should return false for <input>', function() {
        var element = document.getElementById('non-disabled-input');
        var res = isDisabled(element);
        expect(res).to.equal(false);
      });
Severity: Major
Found in test/unit/is.disabled.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 45..49
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 72..76
test/unit/is.disabled.test.js on lines 78..82
test/unit/is.disabled.test.js on lines 92..96
test/unit/is.native-disabled-supported.test.js on lines 40..44
test/unit/is.native-disabled-supported.test.js on lines 46..50

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

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 null for element without tabindex attribute', function() {
      var element = document.getElementById('tabindex-none');
      var result = tabindexValue(element);
      expect(result).to.equal(null);
    });
Severity: Major
Found in test/unit/util.tabindex-value.test.js and 4 other locations - About 1 hr to fix
test/unit/element.blur.test.js on lines 28..32
test/unit/element.focus.test.js on lines 30..34
test/unit/element.focus.test.js on lines 68..72
test/unit/element.focus.test.js on lines 74..78

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

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

      bdd.it('should return false for <fieldset> <input>', function() {
        var element = document.getElementById('non-disabled-fieldset');
        var res = isDisabled(element);
        expect(res).to.equal(false);
      });
Severity: Major
Found in test/unit/is.disabled.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 45..49
test/unit/is.disabled.test.js on lines 58..62
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 78..82
test/unit/is.disabled.test.js on lines 92..96
test/unit/is.native-disabled-supported.test.js on lines 40..44
test/unit/is.native-disabled-supported.test.js on lines 46..50

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

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 ignore non-focusable elements', function() {
      var element = document.getElementById('inert-div');
      var result = elementBlur(element);
      expect(result).to.equal(null);
    });
Severity: Major
Found in test/unit/element.blur.test.js and 4 other locations - About 1 hr to fix
test/unit/element.focus.test.js on lines 30..34
test/unit/element.focus.test.js on lines 68..72
test/unit/element.focus.test.js on lines 74..78
test/unit/util.tabindex-value.test.js on lines 34..38

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

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

    bdd.it('should return true for <input>', function() {
      var element = document.getElementById('non-disabled-input');
      var res = isNativeDisabledSupported(element);
      expect(res).to.equal(true);
    });
Severity: Major
Found in test/unit/is.native-disabled-supported.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 45..49
test/unit/is.disabled.test.js on lines 58..62
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 72..76
test/unit/is.disabled.test.js on lines 78..82
test/unit/is.disabled.test.js on lines 92..96
test/unit/is.native-disabled-supported.test.js on lines 40..44

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

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

      bdd.it('should return false for <div>', function() {
        var element = document.getElementById('non-input');
        var res = isDisabled(element);
        expect(res).to.equal(false);
      });
Severity: Major
Found in test/unit/is.disabled.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 58..62
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 72..76
test/unit/is.disabled.test.js on lines 78..82
test/unit/is.disabled.test.js on lines 92..96
test/unit/is.native-disabled-supported.test.js on lines 40..44
test/unit/is.native-disabled-supported.test.js on lines 46..50

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

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

      bdd.it('should return false for <form> <input>', function() {
        var element = document.getElementById('non-disabled-form');
        var res = isDisabled(element);
        expect(res).to.equal(false);
      });
Severity: Major
Found in test/unit/is.disabled.test.js and 7 other locations - About 1 hr to fix
test/unit/is.disabled.test.js on lines 45..49
test/unit/is.disabled.test.js on lines 58..62
test/unit/is.disabled.test.js on lines 64..68
test/unit/is.disabled.test.js on lines 72..76
test/unit/is.disabled.test.js on lines 78..82
test/unit/is.native-disabled-supported.test.js on lines 40..44
test/unit/is.native-disabled-supported.test.js on lines 46..50

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

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 ignore non-focusable elements', function() {
      var element = document.getElementById('inert-div');
      var result = elementFocus(element);
      expect(result).to.equal(null);
    });
Severity: Major
Found in test/unit/element.focus.test.js and 4 other locations - About 1 hr to fix
test/unit/element.blur.test.js on lines 28..32
test/unit/element.focus.test.js on lines 68..72
test/unit/element.focus.test.js on lines 74..78
test/unit/util.tabindex-value.test.js on lines 34..38

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

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 not consider flexbox elements focusable in IE10-11', function() {
      var element = document.getElementById('flexbox-container-child');
      var result = elementFocus(element);
      expect(result).to.equal(null);
    });
Severity: Major
Found in test/unit/element.focus.test.js and 4 other locations - About 1 hr to fix
test/unit/element.blur.test.js on lines 28..32
test/unit/element.focus.test.js on lines 30..34
test/unit/element.focus.test.js on lines 74..78
test/unit/util.tabindex-value.test.js on lines 34..38

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

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 register focus shift by script after keyboard', function() {
        fixture.input.after.focus();
        expect(handle.current()).to.equal('script', 'handle.current()');
      });
Severity: Major
Found in test/unit/style.focus-source.test.js and 1 other location - About 1 hr to fix
test/unit/style.focus-source.test.js on lines 119..122

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

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 register focus shift by script after pointer', function() {
        fixture.input.after.focus();
        expect(handle.current()).to.equal('script', 'handle.current()');
      });
Severity: Major
Found in test/unit/style.focus-source.test.js and 1 other location - About 1 hr to fix
test/unit/style.focus-source.test.js on lines 100..103

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

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

Consider simplifying this complex logical expression.
Open

if (typeof document === 'undefined' || !document.documentElement.createShadowRoot) {
  // no need to initialize any of this if we don't have ShadowDOM available
  engage = disengage = function() {};
} else {
  let blurTimer;
Severity: Critical
Found in src/event/shadow-focus.js - About 1 hr to fix

    Function default has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function(context) {
      if (!supports) {
        supports = _supports();
      }
    
    
    Severity: Minor
    Found in src/is/valid-area.js - About 1 hr to fix

      Function verifyLinks has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function verifyLinks(index, filename, $, ignore) {
        const errors = [];
      
        $('a').each(function() {
          const $link = $(this);
      Severity: Minor
      Found in build/metalsmith/plugins/link-checker.js - About 1 hr to fix

        Function default has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export default function(context) {
          const element = contextToElement({
            label: 'element/blur',
            context,
          });
        Severity: Minor
        Found in src/element/blur.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language