timw4mail/node-query

View on GitHub
docs/assets/anchor.js

Summary

Maintainability
D
1 day
Test Coverage

Function AnchorJS has 202 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function AnchorJS(options) {
    this.options = options || {};
    this.elements = [];

    /**
Severity: Major
Found in docs/assets/anchor.js - About 1 day to fix

    Function add has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.add = function(selector) {
          var elements,
            elsWithIds,
            idList,
            elementID,
    Severity: Major
    Found in docs/assets/anchor.js - About 3 hrs to fix

      Function _addBaselineStyles has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _addBaselineStyles() {
            // We don't want to add global baseline styles if they've been added before.
            if (document.head.querySelector('style.anchorjs') !== null) {
              return;
            }
      Severity: Minor
      Found in docs/assets/anchor.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status