pinclub/pinclub

View on GitHub

Showing 850 of 1,424 total issues

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

},{"../helpers/normalize_reference":7,"../helpers/parse_link_destination":8,"../helpers/parse_link_label":9,"../helpers/parse_link_title":10}],46:[function(require,module,exports){
// Process [link](<to> "stuff")

'use strict';

Severity: Major
Found in public/libs/markdownit.js - About 3 hrs to fix

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

    /*
      Implement Github like autocomplete mentions
      http://ichord.github.com/At.js
    
      Copyright (c) 2013 chord.luo@gmail.com
    Severity: Minor
    Found in public/libs/jquery.caret.js - About 3 hrs to fix

      Function registerEventHandlers has 94 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function registerEventHandlers(cm) {
          var d = cm.display;
          on(d.scroller, "mousedown", operation(cm, onMouseDown));
          if (ie)
            on(d.scroller, "dblclick", operation(cm, function(e) {
      Severity: Major
      Found in public/libs/editor/editor.js - About 3 hrs to fix

        Function table has 94 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function table(state, startLine, endLine, silent) {
          var ch, lineText, pos, i, nextLine, rows,
              aligns, t, tableLines, tbodyLines;
        
          // should have at least three lines
        Severity: Major
        Found in public/libs/markdownit.js - About 3 hrs to fix

          Function bubbleParticle has 93 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            pJS.fn.modes.bubbleParticle = function(p){
          
              /* on hover event */
              if(pJS.interactivity.events.onhover.enable && isInArray('bubble', pJS.interactivity.events.onhover.mode)){
          
          
          Severity: Major
          Found in public/libs/particles/particles.js - About 3 hrs to fix

            Function debounce has 93 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function debounce(func, wait, options) {
                  var args,
                    maxTimeoutId,
                    result,
                    stamp,
            Severity: Major
            Found in public/libs/lodash.compat.js - About 3 hrs to fix

              Function bidiOrdering has 92 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                var bidiOrdering = (function() {
                  // Character types for codepoints 0 to 0xff
                  var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL";
                  // Character types for codepoints 0x600 to 0x6ff
                  var arabicTypes = "rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr";
              Severity: Major
              Found in public/libs/editor/editor.js - About 3 hrs to fix

                Function signIn has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                exports.signIn = function (req, res, next) {
                    req.checkBody({
                        'loginname': {
                            notEmpty: {
                                options: [true],
                Severity: Major
                Found in api/v2/auth.js - About 3 hrs to fix

                  Function getBrowserDetection has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    var getBrowserDetection = function () {
                  
                      if (browserdetected) return browserdetected;
                  
                      var _el = _doc.createElement('DIV'),
                  Severity: Major
                  Found in public/libs/jquery.nicescroll.js - About 3 hrs to fix

                    Function link has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    module.exports = function link(state, silent) {
                      var code,
                          href,
                          label,
                          labelEnd,
                    Severity: Major
                    Found in public/libs/markdownit.js - About 3 hrs to fix

                      Function particlesUpdate has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        pJS.fn.particlesUpdate = function(){
                      
                          for(var i = 0; i < pJS.particles.array.length; i++){
                      
                            /* the particle */
                      Severity: Major
                      Found in public/libs/particles/particles.js - About 3 hrs to fix

                        Function iteratorTemplate has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            var iteratorTemplate = function (obj) {
                        
                              var __p = 'var index, iterable = ' +
                                (obj.firstArg) +
                                ', result = ' +
                        Severity: Major
                        Found in public/libs/lodash.compat.js - About 3 hrs to fix

                          Function trigger has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              trigger: function (event, data, elem, onlyHandlers) {
                          
                                var i, cur, tmp, bubbleType, ontype, handle, special,
                                  eventPath = [ elem || document ],
                                  type = hasOwn.call(event, "type") ? event.type : event,
                          Severity: Major
                          Found in public/libs/jquery-2.1.0.js - About 3 hrs to fix

                            Function onResize has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                this.onResize = function (e, page) {
                            
                                  if (!self || !self.win) return false;
                            
                                  var premaxh = self.page.maxh,
                            Severity: Major
                            Found in public/libs/jquery.nicescroll.js - About 3 hrs to fix

                              Function getImage has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              exports.getImage = function (req, res, next) {
                                  req.checkBody({
                                      'topic_id': {
                                          notEmpty: {
                                              options: [true],
                              Severity: Major
                              Found in api/v2/image.js - About 3 hrs to fix

                                File sign.js has 307 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                var validator = require('validator');
                                var EventProxy = require('eventproxy');
                                var config = require('../config');
                                var User = require('../proxy').User;
                                var mail = require('../common/mail');
                                Severity: Minor
                                Found in controllers/sign.js - About 3 hrs to fix

                                  Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function Animation(elem, properties, options) {
                                      var result,
                                        stopped,
                                        index = 0,
                                        length = animationPrefilters.length,
                                  Severity: Major
                                  Found in public/libs/jquery-2.1.0.js - About 3 hrs to fix

                                    Function 14 has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    },{"./ruler":19,"./rules_core/block":32,"./rules_core/inline":33,"./rules_core/linkify":34,"./rules_core/normalize":35,"./rules_core/replacements":36,"./rules_core/smartquotes":37,"./rules_core/state_core":38}],14:[function(require,module,exports){
                                    /** internal
                                     * class ParserInline
                                     *
                                     * Tokenizes paragraph content.
                                    Severity: Major
                                    Found in public/libs/markdownit.js - About 3 hrs to fix

                                      Function ontouchstart has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                self.ontouchstart = function (e) {
                                      
                                                  if (self.locked) return false;
                                      
                                                  //if (e.pointerType && e.pointerType != 2 && e.pointerType != "touch") return false;
                                      Severity: Major
                                      Found in public/libs/jquery.nicescroll.js - About 3 hrs to fix

                                        Function 37 has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        },{}],37:[function(require,module,exports){
                                        // Convert straight quotation marks to typographic ones
                                        //
                                        'use strict';
                                        
                                        
                                        Severity: Major
                                        Found in public/libs/markdownit.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language