pinclub/pinclub

View on GitHub

Showing 850 of 1,424 total issues

Function CodeMirror has 4826 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var CodeMirror = (function() {
  "use strict";

  // BROWSER SNIFFING

Severity: Major
Found in public/libs/editor/editor.js - About 3 wks to fix

    Function S2 has 4825 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    (function () {
      // Restore the Select2 AMD loader so it can be used
      // Needed mostly in the language files, where the loader is not inserted
      if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
        var S2 = jQuery.fn.select2.amd;
    Severity: Major
    Found in public/libs/select2/js/select2.full.js - About 3 wks to fix

      Function S2 has 4315 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      (function () {
        // Restore the Select2 AMD loader so it can be used
        // Needed mostly in the language files, where the loader is not inserted
        if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
          var S2 = jQuery.fn.select2.amd;
      Severity: Major
      Found in public/libs/select2/js/select2.js - About 3 wks to fix

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

        /*!
         * jQuery JavaScript Library v2.1.0
         * http://jquery.com/
         *
         * Includes Sizzle.js
        Severity: Major
        Found in public/libs/jquery-2.1.0.js - About 2 wks to fix

          File editor.js has 6077 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          (function(global) {
          // CodeMirror version 3.15
          //
          // CodeMirror is the only global var we claim
          var CodeMirror = (function() {
          Severity: Major
          Found in public/libs/editor/editor.js - About 2 wks to fix

            File markdownit.js has 5719 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*! markdown-it 3.0.3 https://github.com//markdown-it/markdown-it @license MIT */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.markdownit=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
            // List of valid entities
            //
            // Generate with ./support/entities.js script
            //
            Severity: Major
            Found in public/libs/markdownit.js - About 2 wks to fix

              File select2.full.js has 4841 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*!
               * Select2 4.0.3
               * https://select2.github.io
               *
               * Released under the MIT license
              Severity: Major
              Found in public/libs/select2/js/select2.full.js - About 2 wks to fix

                Function NiceScrollClass has 2508 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  var NiceScrollClass = function (myopt, me) {
                
                    var self = this;
                
                    this.version = '3.7.5';
                Severity: Major
                Found in public/libs/jquery.nicescroll.js - About 1 wk to fix

                  File select2.js has 4331 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * Select2 4.0.3
                   * https://select2.github.io
                   *
                   * Released under the MIT license
                  Severity: Major
                  Found in public/libs/select2/js/select2.js - About 1 wk to fix

                    Function runInContext has 2465 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function runInContext(context) {
                        // Avoid issues with some ES3 environments that attempt to use values, named
                        // after built-in constructors like `Object`, for the creation of literals.
                        // ES5 clears this up by stating that literals must use built-in constructors.
                        // See http://es5.github.io/#x11.1.5.
                    Severity: Major
                    Found in public/libs/lodash.compat.js - About 1 wk to fix

                      Function pJS has a Cognitive Complexity of 566 (exceeds 5 allowed). Consider refactoring.
                      Open

                      var pJS = function(tag_id, params){
                      
                        var canvas_el = document.querySelector('#'+tag_id+' > .particles-js-canvas-el');
                      
                        /* particles.js variables with default values */
                      Severity: Minor
                      Found in public/libs/particles/particles.js - About 1 wk 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 1 has 2127 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      /*! markdown-it 3.0.3 https://github.com//markdown-it/markdown-it @license MIT */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.markdownit=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
                      // List of valid entities
                      //
                      // Generate with ./support/entities.js script
                      //
                      Severity: Major
                      Found in public/libs/markdownit.js - About 1 wk to fix

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

                        /* jquery.nicescroll
                        -- version 3.7.5
                        -- copyright 2017-07-13 InuYaksa*2017
                        -- licensed under the MIT
                        --
                        Severity: Major
                        Found in public/libs/jquery.nicescroll.js - About 1 wk to fix

                          File webuploader.withoutimage.js has 2734 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*! WebUploader 0.1.5 */
                          
                          
                          /**
                          * @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。
                          Severity: Major
                          Found in public/libs/webuploader/webuploader.withoutimage.js - About 1 wk to fix

                            File lodash.compat.js has 2728 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * @license
                             * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
                             * Build: `lodash -o ./dist/lodash.compat.js`
                             * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                            Severity: Major
                            Found in public/libs/lodash.compat.js - About 1 wk to fix

                              Function Sizzle has 1340 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  (function (window) {
                              
                                    var i,
                                      support,
                                      Expr,
                              Severity: Major
                              Found in public/libs/jquery-2.1.0.js - About 6 days to fix

                                Function init has 1078 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    this.init = function () {
                                
                                      self.saved.css = [];
                                
                                      if (cap.isoperamini) return true; // SORRY, DO NOT WORK!
                                Severity: Major
                                Found in public/libs/jquery.nicescroll.js - About 5 days to fix

                                  Function pJS has 988 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var pJS = function(tag_id, params){
                                  
                                    var canvas_el = document.querySelector('#'+tag_id+' > .particles-js-canvas-el');
                                  
                                    /* particles.js variables with default values */
                                  Severity: Major
                                  Found in public/libs/particles/particles.js - About 4 days to fix

                                    File bootstrap.js has 1596 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*!
                                     * Bootstrap v3.3.7 (http://getbootstrap.com)
                                     * Copyright 2011-2016 Twitter, Inc.
                                     * Licensed under the MIT license
                                     */
                                    Severity: Major
                                    Found in public/libs/bootstrap3/js/bootstrap.js - About 4 days to fix

                                      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
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language