pinclub/pinclub

View on GitHub

Showing 850 of 1,424 total issues

Function 51 has 576 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],51:[function(require,module,exports){
(function (root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define([], function () {
Severity: Major
Found in public/libs/markdownit.js - About 2 days to fix

    File particles.js has 1081 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* -----------------------------------------------
    /* Author : Vincent Garreau  - vincentgarreau.com
    /* MIT license: http://opensource.org/licenses/MIT
    /* Demo / Generator : vincentgarreau.com/particles.js
    /* GitHub : github.com/VincentGarreau/particles.js
    Severity: Major
    Found in public/libs/particles/particles.js - About 2 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

        File Q.Uploader.image.all.js has 945 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
        * Q.js for Uploader
        * author:devin87@qq.com
        * update:2015/10/23 14:55
        */
        Severity: Major
        Found in public/libs/Q.Uploader.image.all.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

          File Q.Uploader.all.js has 854 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
          * Q.js for Uploader
          * author:devin87@qq.com
          * update:2015/10/23 14:55
          */
          Severity: Major
          Found in public/libs/Q.Uploader.all.js - About 2 days to fix

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

            /*! jquery.atwho - v0.5.1 - 2014-10-16
            * Copyright (c) 2014 chord.luo <chord.luo@gmail.com>;
            * homepage: http://ichord.github.com/At.js
            * Licensed MIT
            */
            Severity: Major
            Found in public/libs/jquery.atwho.js - About 1 day to fix

              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 stick_in_parent has 248 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.fn.stick_in_parent = function(opts) {
                        var doc, elm, enable_bottoming, fn, i, inner_scrolling, len, manual_spacer, offset_top, outer_width, parent_selector, recalc_every, sticky_class;
                        if (opts == null) {
                            opts = {};
                        }
                Severity: Major
                Found in public/libs/jquery.sticky-kit.js - About 1 day to fix

                  Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      ajax: function (url, options) {
                  
                        // If url is an object, simulate pre-1.5 signature
                        if (typeof url === "object") {
                          options = url;
                  Severity: Major
                  Found in public/libs/jquery-2.1.0.js - About 1 day to fix

                    File image.js has 563 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*!
                     * nodeclub - controllers/Image.js
                     */
                    
                    /**
                    Severity: Major
                    Found in controllers/image.js - About 1 day to fix

                      Function setDocument has 215 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            setDocument = Sizzle.setDocument = function (node) {
                              var hasCompare,
                                doc = node ? node.ownerDocument || node : preferredDoc,
                                parent = doc.defaultView;
                      
                      
                      Severity: Major
                      Found in public/libs/jquery-2.1.0.js - About 1 day to fix

                        File user.js has 513 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        var User = require('../proxy').User;
                        var Topic = require('../proxy').Topic;
                        var Reply = require('../proxy').Reply;
                        var TopicCollect = require('../proxy').TopicCollect;
                        var utility = require('utility');
                        Severity: Major
                        Found in controllers/user.js - About 1 day to fix

                          Function apply has 191 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            Defaults.prototype.apply = function (options) {
                              options = $.extend(true, {}, this.defaults, options);
                          
                              if (options.dataAdapter == null) {
                                if (options.ajax != null) {
                          Severity: Major
                          Found in public/libs/select2/js/select2.js - About 7 hrs to fix

                            Function apply has 191 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              Defaults.prototype.apply = function (options) {
                                options = $.extend(true, {}, this.defaults, options);
                            
                                if (options.dataAdapter == null) {
                                  if (options.ajax != null) {
                            Severity: Major
                            Found in public/libs/select2/js/select2.full.js - About 7 hrs to fix

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

                              },{}],27:[function(require,module,exports){
                              // Lists
                              
                              'use strict';
                              
                              
                              Severity: Major
                              Found in public/libs/markdownit.js - About 6 hrs to fix

                                Function 4 has 166 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                },{}],4:[function(require,module,exports){
                                // List of valid url schemas, accorting to commonmark spec
                                // http://jgm.github.io/CommonMark/spec.html#autolinks
                                
                                'use strict';
                                Severity: Major
                                Found in public/libs/markdownit.js - About 6 hrs to fix

                                  Function bind has 164 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    Results.prototype.bind = function (container, $container) {
                                      var self = this;
                                  
                                      var id = container.id + '-results';
                                  
                                  
                                  Severity: Major
                                  Found in public/libs/select2/js/select2.js - About 6 hrs to fix

                                    Function bind has 164 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      Results.prototype.bind = function (container, $container) {
                                        var self = this;
                                    
                                        var id = container.id + '-results';
                                    
                                    
                                    Severity: Major
                                    Found in public/libs/select2/js/select2.full.js - About 6 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language