pinclub/pinclub

View on GitHub

Showing 850 of 1,424 total issues

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

    add: function (elem, types, handler, data, selector) {

      var handleObjIn, eventHandle, tmp,
        events, t, handleObj,
        special, handlers, type, namespaces, origType,
Severity: Major
Found in public/libs/jquery-2.1.0.js - About 2 hrs to fix

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

            function matcherFromGroupMatchers(elementMatchers, setMatchers) {
              var bySet = setMatchers.length > 0,
                byElement = elementMatchers.length > 0,
                superMatcher = function (seed, context, xml, results, outermost) {
                  var elem, j, matcher,
      Severity: Major
      Found in public/libs/jquery-2.1.0.js - About 2 hrs to fix

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

            this.doMomentum = function (gp) {
              var t = now();
              var l = (gp) ? t + gp : self.lasttime;
        
              var sl = self.nc.getScrollLeft();
        Severity: Major
        Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

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

                  var oniframeload = function () {
                    self.iframexd = false;
                    var doc;
                    try {
                      doc = 'contentDocument' in this ? this.contentDocument : this.contentWindow._doc;
          Severity: Major
          Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

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

            exports.setting = function (req, res, next) {
                var ep = new EventProxy();
                ep.fail(next);
            
                // 显示出错或成功信息
            Severity: Major
            Found in controllers/user.js - About 2 hrs to fix

              Function L has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function L(a) {
                  function m(a) {
                    var f = a.charCodeAt(0);
                    if (f !== 92)return f;
                    var b = a.charAt(1);
              Severity: Major
              Found in public/libs/code-prettify/prettify.js - About 2 hrs to fix

                Function buildLineElement has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function buildLineElement(cm, line, lineNo, dims, reuse) {
                    var lineElement = lineContent(cm, line);
                    var markers = line.gutterMarkers, display = cm.display, wrap;
                
                    if (!cm.options.lineNumbers && !markers && !line.bgClass && !line.wrapClass && !line.widgets)
                Severity: Major
                Found in public/libs/editor/editor.js - About 2 hrs to fix

                  Function normalize has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function normalize(name, baseName) {
                          var nameParts, nameSegment, mapValue, foundMap, lastIndex,
                              foundI, foundStarMap, starI, i, j, part,
                              baseParts = baseName && baseName.split("/"),
                              map = config.map,
                  Severity: Major
                  Found in public/libs/select2/js/select2.full.js - About 2 hrs to fix

                    Function normalize has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function normalize(name, baseName) {
                            var nameParts, nameSegment, mapValue, foundMap, lastIndex,
                                foundI, foundStarMap, starI, i, j, part,
                                baseParts = baseName && baseName.split("/"),
                                map = config.map,
                    Severity: Major
                    Found in public/libs/select2/js/select2.js - About 2 hrs to fix

                      Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            function done(status, nativeStatusText, responses, headers) {
                              var isSuccess, success, error, response, modified,
                                statusText = nativeStatusText;
                      
                              // Called once
                      Severity: Major
                      Found in public/libs/jquery-2.1.0.js - About 2 hrs to fix

                        Function 20 has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          File jquery-ujs.js has 278 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          (function ($, undefined) {
                          
                            /**
                             * Unobtrusive scripting adapter for jQuery
                             * https://github.com/rails/jquery-ujs
                          Severity: Minor
                          Found in public/libs/jquery-ujs.js - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                              this.mapData(this.dataCache,maskPattern);},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}}
                            Severity: Critical
                            Found in public/libs/qrcode.js - About 2 hrs to fix

                              Function fromElement has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                Options.prototype.fromElement = function ($e) {
                                  var excludedData = ['select2'];
                              
                                  if (this.options.multiple == null) {
                                    this.options.multiple = $e.prop('multiple');
                              Severity: Major
                              Found in public/libs/select2/js/select2.js - About 2 hrs to fix

                                Function fromElement has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Options.prototype.fromElement = function ($e) {
                                    var excludedData = ['select2'];
                                
                                    if (this.options.multiple == null) {
                                      this.options.multiple = $e.prop('multiple');
                                Severity: Major
                                Found in public/libs/select2/js/select2.full.js - About 2 hrs to fix

                                  Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
                                          if (postFilter && !postFilter[ expando ]) {
                                            postFilter = setMatcher(postFilter);
                                          }
                                          if (postFinder && !postFinder[ expando ]) {
                                  Severity: Major
                                  Found in public/libs/jquery-2.1.0.js - About 2 hrs to fix

                                    Function eventsListeners has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      pJS.fn.vendors.eventsListeners = function(){
                                    
                                        /* events target element */
                                        if(pJS.interactivity.detect_on == 'window'){
                                          pJS.interactivity.el = window;
                                    Severity: Major
                                    Found in public/libs/particles/particles.js - About 2 hrs to fix

                                      Function show has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      exports.show = function (req, res, next) {
                                          var topicId = String(req.params.id);
                                      
                                          var mdrender = req.query.mdrender === 'false' ? false : true;
                                          var ep = new EventProxy();
                                      Severity: Major
                                      Found in api/v2/image.js - About 2 hrs to fix

                                        Function RuntimeClient has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function RuntimeClient(component, standalone) {
                                                    var deferred = Base.Deferred(),
                                                        runtime;
                                        
                                                    this.uid = Base.guid('client_');
                                        Severity: Major
                                        Found in public/libs/webuploader/webuploader.withoutimage.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language