pinclub/pinclub

View on GitHub
public/libs/masonry.pkgd.js

Summary

Maintainability
F
2 wks
Test Coverage

File masonry.pkgd.js has 1483 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Masonry PACKAGED v4.1.1
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
Severity: Major
Found in public/libs/masonry.pkgd.js - About 3 days to fix

    Function factory has 500 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    }( window, function factory( window, EvEmitter, getSize, utils, Item ) {
    'use strict';
    
    // ----- vars ----- //
    
    
    Severity: Major
    Found in public/libs/masonry.pkgd.js - About 2 days to fix

      Function factory has a Cognitive Complexity of 109 (exceeds 5 allowed). Consider refactoring.
      Open

      }( window, function factory( window, EvEmitter, getSize, utils, Item ) {
      'use strict';
      
      // ----- vars ----- //
      
      
      Severity: Minor
      Found in public/libs/masonry.pkgd.js - About 2 days to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function factory has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring.
      Open

      }( window, function factory( EvEmitter, getSize ) {
      'use strict';
      
      // ----- helpers ----- //
      
      
      Severity: Minor
      Found in public/libs/masonry.pkgd.js - About 1 day to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function factory has 331 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      }( window, function factory( EvEmitter, getSize ) {
      'use strict';
      
      // ----- helpers ----- //
      
      
      Severity: Major
      Found in public/libs/masonry.pkgd.js - About 1 day to fix

        Function factory has 131 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        }( window, function factory( window, matchesSelector ) {
        
        
        
        var utils = {};
        Severity: Major
        Found in public/libs/masonry.pkgd.js - About 5 hrs to fix

          Function factory has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

          }( window, function factory( Outlayer, getSize ) {
          
          
          
          // -------------------------- masonryDefinition -------------------------- //
          Severity: Minor
          Found in public/libs/masonry.pkgd.js - About 5 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function factory has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
          Open

          })( window, function factory() {
          'use strict';
          
          // -------------------------- helpers -------------------------- //
          
          
          Severity: Minor
          Found in public/libs/masonry.pkgd.js - About 4 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function factory has 114 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          })( window, function factory() {
          'use strict';
          
          // -------------------------- helpers -------------------------- //
          
          
          Severity: Major
          Found in public/libs/masonry.pkgd.js - About 4 hrs to fix

            Function factory has 112 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            }( window, function factory( Outlayer, getSize ) {
            
            
            
            // -------------------------- masonryDefinition -------------------------- //
            Severity: Major
            Found in public/libs/masonry.pkgd.js - About 4 hrs to fix

              Function factory has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
              Open

              }( window, function factory( window, matchesSelector ) {
              
              
              
              var utils = {};
              Severity: Minor
              Found in public/libs/masonry.pkgd.js - About 3 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function factory has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
              Open

              }( window, function factory( window, jQuery ) {
              'use strict';
              
              // ----- utils ----- //
              
              
              Severity: Minor
              Found in public/libs/masonry.pkgd.js - About 2 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function factory has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              }( window, function factory( window, jQuery ) {
              'use strict';
              
              // ----- utils ----- //
              
              
              Severity: Major
              Found in public/libs/masonry.pkgd.js - About 2 hrs to fix

                Function jQueryBridget has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function jQueryBridget( namespace, PluginClass, $ ) {
                  $ = $ || jQuery || window.jQuery;
                  if ( !$ ) {
                    return;
                  }
                Severity: Major
                Found in public/libs/masonry.pkgd.js - About 2 hrs to fix

                  Function getSize has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function getSize( elem ) {
                    setup();
                  
                    // use querySeletor if elem is string
                    if ( typeof elem == 'string' ) {
                  Severity: Minor
                  Found in public/libs/masonry.pkgd.js - About 1 hr to fix

                    Function htmlInit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    utils.htmlInit = function( WidgetClass, namespace ) {
                      utils.docReady( function() {
                        var dashedNamespace = utils.toDashed( namespace );
                        var dataAttr = 'data-' + dashedNamespace;
                        var dataAttrElems = document.querySelectorAll( '[' + dataAttr + ']' );
                    Severity: Minor
                    Found in public/libs/masonry.pkgd.js - About 1 hr to fix

                      Function factory has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                      Open

                      }( window, function factory() {
                        'use strict';
                      
                        var matchesMethod = ( function() {
                          var ElemProto = Element.prototype;
                      Severity: Minor
                      Found in public/libs/masonry.pkgd.js - About 55 mins to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

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

                      proto._positionItem = function( item, x, y, isInstant, i ) {
                      Severity: Minor
                      Found in public/libs/masonry.pkgd.js - About 35 mins to fix

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

                        ( function( window, factory ) {
                          // universal module definition
                          /*jshint strict: false */ /*globals define, module, require */
                        
                          if ( typeof define == 'function' && define.amd ) {
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 4 hrs to fix
                        public/libs/masonry.pkgd.js on lines 17..151

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

                        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

                        ( function( window, factory ) {
                          // universal module definition
                          /*jshint strict: false */ /* globals define, module, require */
                          if ( typeof define == 'function' && define.amd ) {
                            // AMD
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 4 hrs to fix
                        public/libs/masonry.pkgd.js on lines 534..762

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

                        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

                        proto.hide = function( items ) {
                          this._emitCompleteOnItems( 'hide', items );
                          if ( !items || !items.length ) {
                            return;
                          }
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 3 hrs to fix
                        public/libs/masonry.pkgd.js on lines 2053..2063

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

                        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

                        proto.reveal = function( items ) {
                          this._emitCompleteOnItems( 'reveal', items );
                          if ( !items || !items.length ) {
                            return;
                          }
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 3 hrs to fix
                        public/libs/masonry.pkgd.js on lines 2069..2079

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

                        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

                          if ( typeof define == 'function' && define.amd ) {
                            // AMD
                            define( 'desandro-matches-selector/matches-selector',factory );
                          } else if ( typeof module == 'object' && module.exports ) {
                            // CommonJS
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 2 other locations - About 1 hr to fix
                        public/libs/masonry.pkgd.js on lines 164..173
                        public/libs/masonry.pkgd.js on lines 275..286

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

                        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

                          if ( typeof define == 'function' && define.amd ) {
                            // AMD - RequireJS
                            define( 'ev-emitter/ev-emitter',factory );
                          } else if ( typeof module == 'object' && module.exports ) {
                            // CommonJS - Browserify, Webpack
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 2 other locations - About 1 hr to fix
                        public/libs/masonry.pkgd.js on lines 275..286
                        public/libs/masonry.pkgd.js on lines 485..494

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

                        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

                          if ( typeof define == 'function' && define.amd ) {
                            // AMD
                            define( 'get-size/get-size',[],function() {
                              return factory();
                            });
                        Severity: Major
                        Found in public/libs/masonry.pkgd.js and 2 other locations - About 1 hr to fix
                        public/libs/masonry.pkgd.js on lines 164..173
                        public/libs/masonry.pkgd.js on lines 485..494

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

                        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

                        utils.handleEvent = function( event ) {
                          var method = 'on' + event.type;
                          if ( this[ method ] ) {
                            this[ method ]( event );
                          }
                        Severity: Minor
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 55 mins to fix
                        public/libs/masonry.pkgd.js on lines 867..872

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

                        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

                        proto.handleEvent = function( event ) {
                          var method = 'on' + event.type;
                          if ( this[ method ] ) {
                            this[ method ]( event );
                          }
                        Severity: Minor
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 55 mins to fix
                        public/libs/masonry.pkgd.js on lines 634..639

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

                        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

                        proto.hideItemElements = function( elems ) {
                          var items = this.getItems( elems );
                          this.hide( items );
                        };
                        Severity: Minor
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 35 mins to fix
                        public/libs/masonry.pkgd.js on lines 2085..2088

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

                        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

                          var x = xValue.indexOf('%') != -1 ?
                            ( parseFloat( xValue ) / 100 ) * layoutSize.width : parseInt( xValue, 10 );
                        Severity: Minor
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 35 mins to fix
                        public/libs/masonry.pkgd.js on lines 903..904

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

                        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

                        proto.revealItemElements = function( elems ) {
                          var items = this.getItems( elems );
                          this.reveal( items );
                        };
                        Severity: Minor
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 35 mins to fix
                        public/libs/masonry.pkgd.js on lines 2094..2097

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

                        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

                          var y = yValue.indexOf('%') != -1 ?
                            ( parseFloat( yValue ) / 100 ) * layoutSize.height : parseInt( yValue, 10 );
                        Severity: Minor
                        Found in public/libs/masonry.pkgd.js and 1 other location - About 35 mins to fix
                        public/libs/masonry.pkgd.js on lines 901..902

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

                        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

                        There are no issues that match your filters.

                        Category
                        Status