Showing 850 of 1,424 total issues
Function CodeMirror
has 4826 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CodeMirror = (function() {
"use strict";
// BROWSER SNIFFING
Function S2
has 4825 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function S2
has 4315 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
File jquery-2.1.0.js
has 6124 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v2.1.0
* http://jquery.com/
*
* Includes Sizzle.js
File editor.js
has 6077 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(global) {
// CodeMirror version 3.15
//
// CodeMirror is the only global var we claim
var CodeMirror = (function() {
File markdownit.js
has 5719 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
//
File select2.full.js
has 4841 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Select2 4.0.3
* https://select2.github.io
*
* Released under the MIT license
Function NiceScrollClass
has 2508 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var NiceScrollClass = function (myopt, me) {
var self = this;
this.version = '3.7.5';
File select2.js
has 4331 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Select2 4.0.3
* https://select2.github.io
*
* Released under the MIT license
Function runInContext
has 2465 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.
Function pJS
has a Cognitive Complexity of 566 (exceeds 5 allowed). Consider refactoring. Open
Open
var pJS = function(tag_id, params){
var canvas_el = document.querySelector('#'+tag_id+' > .particles-js-canvas-el');
/* particles.js variables with default values */
- Read upRead up
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
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
//
File jquery.nicescroll.js
has 2984 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* jquery.nicescroll
-- version 3.7.5
-- copyright 2017-07-13 InuYaksa*2017
-- licensed under the MIT
--
File webuploader.withoutimage.js
has 2734 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! WebUploader 0.1.5 */
/**
* @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。
File lodash.compat.js
has 2728 lines of code (exceeds 250 allowed). Consider refactoring. Open
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/>
Function Sizzle
has 1340 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function (window) {
var i,
support,
Expr,
Function init
has 1078 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function () {
self.saved.css = [];
if (cap.isoperamini) return true; // SORRY, DO NOT WORK!
Function pJS
has 988 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var pJS = function(tag_id, params){
var canvas_el = document.querySelector('#'+tag_id+' > .particles-js-canvas-el');
/* particles.js variables with default values */
File bootstrap.js
has 1596 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
File masonry.pkgd.js
has 1483 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Masonry PACKAGED v4.1.1
* Cascading grid layout library
* http://masonry.desandro.com
* MIT License