stevegrossi/stevegrossi

View on GitHub
app/assets/javascripts/jquery.bigfoot.js

Summary

Maintainability
F
5 days
Test Coverage

Function bigfoot has 583 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.bigfoot = function(options) {


        //  ______   ______   _________  _________  ________  ___   __    _______    ______
        // /_____/\ /_____/\ /________/\/________/\/_______/\/__/\ /__/\ /______/\  /_____/\
Severity: Major
Found in app/assets/javascripts/jquery.bigfoot.js - About 2 days to fix

    File jquery.bigfoot.js has 587 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    //   _______    ________  _______    ______   ______   ______   _________
    // /_______/\  /_______/\/______/\  /_____/\ /_____/\ /_____/\ /________/\
    // \::: _  \ \ \__.::._\/\::::__\/__\::::_\/_\:::_ \ \\:::_ \ \\__.::.__\/
    //  \::(_)  \/_   \::\ \  \:\ /____/\\:\/___/\\:\ \ \ \\:\ \ \ \  \::\ \
    //   \::  _  \ \  _\::\ \__\:\\_  _\/ \:::._\/ \:\ \ \ \\:\ \ \ \  \::\ \
    Severity: Major
    Found in app/assets/javascripts/jquery.bigfoot.js - About 1 day to fix

      Function footnoteInit has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              var footnoteInit = function() {
      
                  // Get all of the possible footnote links
                  var footnoteButtonSearchQuery;
                  footnoteButtonSearchQuery = !settings.scope ? "a[href*=\"#\"]" : settings.scope + " a[href*=\"#\"]";
      Severity: Major
      Found in app/assets/javascripts/jquery.bigfoot.js - About 3 hrs to fix

        Function addBreakpoint has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var addBreakpoint = function(size, deleteDelay, removeOpen,
                                        trueCallback, falseCallback) {
        
                    // Set defaults
                    deleteDelay = deleteDelay || settings.popoverDeleteDelay;
        Severity: Major
        Found in app/assets/javascripts/jquery.bigfoot.js - About 2 hrs to fix

          Function createPopover has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  var createPopover = function(selector) {
          
                      selector = selector || ".footnote-button";
          
                      // Activate all matching if multiple footnotes are allowed
          Severity: Minor
          Found in app/assets/javascripts/jquery.bigfoot.js - About 1 hr to fix

            Function cleanFootnoteLinks has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    var cleanFootnoteLinks = function($footnoteAnchors, footnoteLinks) {
                        var $supParent,
                            $supChild,
                            linkHREF,
                            linkID;
            Severity: Minor
            Found in app/assets/javascripts/jquery.bigfoot.js - About 1 hr to fix

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

                      $.fn.bindScrollHandler = function() {
                          // Don't even bother checking if option is set to false
                          if(!settings.preventPageScroll) { return; }
              
                          $(this).on("DOMMouseScroll mousewheel", function(e) {
              Severity: Minor
              Found in app/assets/javascripts/jquery.bigfoot.js - About 1 hr to fix

                Function repositionFeet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        var repositionFeet = function() {
                            if(settings.positionContent) {
                
                                $(".footnote-content").each(function() {
                
                
                Severity: Minor
                Found in app/assets/javascripts/jquery.bigfoot.js - About 1 hr to fix

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

                              addBreakpoint: function(size, deleteDelay, removeOpen, trueCallback, falseCallback) {
                  Severity: Minor
                  Found in app/assets/javascripts/jquery.bigfoot.js - About 35 mins to fix

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

                            var addBreakpoint = function(size, deleteDelay, removeOpen,
                                                    trueCallback, falseCallback) {
                    Severity: Minor
                    Found in app/assets/javascripts/jquery.bigfoot.js - About 35 mins to fix

                      There are no issues that match your filters.

                      Category
                      Status