mambax7/publisher

View on GitHub
assets/js/jquery.popeye-2.1.js

Summary

Maintainability
F
3 days
Test Coverage

Function popeye has 391 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.popeye = function (options) {
        'use strict';

        // build main options before element iteration
        //----------------------------------------------------------------------
Severity: Major
Found in assets/js/jquery.popeye-2.1.js - About 1 day to fix

    File jquery.popeye-2.1.js has 409 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * jQuery Popeye 2.1 - http://dev.herr-schuessler.de/jquery/popeye/
     *
     * converts a HTML image list in image gallery with inline enlargement
     *
    Severity: Minor
    Found in assets/js/jquery.popeye-2.1.js - About 5 hrs to fix

      Function init has 97 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  function init() {
      
                      // popeye dom setup
                      //--------------------------------------------------------------
      
      
      Severity: Major
      Found in assets/js/jquery.popeye-2.1.js - About 3 hrs to fix

        Function showThumb has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    function showThumb(i, transition) {
        
                        // optional parameters
                        transition = transition || false;
                        i = i || cur;
        Severity: Major
        Found in assets/js/jquery.popeye-2.1.js - About 2 hrs to fix

          Function showImage has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      function showImage(i) {
          
                          // optional parameter i
                          i = i || cur;
          
          
          Severity: Minor
          Found in assets/js/jquery.popeye-2.1.js - About 1 hr to fix

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

                            preloader.onload = function () {
            
                                // remove loading class
                                ppyStageWrap.removeClass(lclass);
            
            
            Severity: Minor
            Found in assets/js/jquery.popeye-2.1.js - About 1 hr to fix

              There are no issues that match your filters.

              Category
              Status