nukomeet/coworfing

View on GitHub
lib/assets/javascripts/jquery.masonry.min.js

Summary

Maintainability
C
1 day
Test Coverage

File jquery.masonry.min.js has 296 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * jQuery Masonry v2.1.03
 * A dynamic layout plugin for jQuery
 * The flip-side of CSS Floats
 * http://masonry.desandro.com
Severity: Minor
Found in lib/assets/javascripts/jquery.masonry.min.js - About 3 hrs to fix

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

        _placeBrick: function( brick ) {
          var $brick = $(brick),
              colSpan, groupCount, groupY, groupColY, j;
    
          //how many columns does this brick span
    Severity: Minor
    Found in lib/assets/javascripts/jquery.masonry.min.js - About 1 hr to fix

      Function layout has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          layout : function( $bricks, callback ) {
      
            // place each brick
            for (var i=0, len = $bricks.length; i < len; i++) {
              this._placeBrick( $bricks[i] );
      Severity: Minor
      Found in lib/assets/javascripts/jquery.masonry.min.js - About 1 hr to fix

        Function _create has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _create : function( options ) {
              
              this.options = $.extend( true, {}, $.Mason.settings, options );
              this.styleQueue = [];
        
        
        Severity: Minor
        Found in lib/assets/javascripts/jquery.masonry.min.js - About 1 hr to fix

          Function imagesLoaded has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            $.fn.imagesLoaded = function( callback ) {
              var $this = this,
                  $images = $this.find('img').add( $this.filter('img') ),
                  len = $images.length,
                  blank = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==',
          Severity: Minor
          Found in lib/assets/javascripts/jquery.masonry.min.js - About 1 hr to fix

            Function masonry has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              $.fn.masonry = function( options ) {
                if ( typeof options === 'string' ) {
                  // call method
                  var args = Array.prototype.slice.call( arguments, 1 );
            
            
            Severity: Minor
            Found in lib/assets/javascripts/jquery.masonry.min.js - About 1 hr to fix

              There are no issues that match your filters.

              Category
              Status