Showing 955 of 1,787 total issues
File jquery-ui.js
has 12606 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*! jQuery UI - v1.11.3 - 2015-02-13
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
Function process
has a Cognitive Complexity of 1784 (exceeds 5 allowed). Consider refactoring. Open
function process($server_path = null) {
$this->error = '';
$this->processed = true;
$return_mode = false;
- 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
File tiny_mce_src.js
has 9335 lines of code (exceeds 250 allowed). Consider refactoring. Open
var tinymce = {
majorVersion : '3',
minorVersion : '2.7',
releaseDate : '2009-09-22',
File jquery.js
has 6641 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
File jquery-1.7.1.js
has 6373 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
File less-1.7.3.js
has 6224 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* Less - Leaner CSS v1.7.3
* http://lesscss.org
*
* Copyright (c) 2009-2014, Alexis Sellier <self@cloudhead.net>
Function Parser
has 1397 lines of code (exceeds 25 allowed). Consider refactoring. Open
less.Parser = function Parser(env) {
var input, // LeSS input string
i, // current index in `input`
j, // current chunk
saveStack = [], // holds state for backtracking
Method process
has 1376 lines of code (exceeds 25 allowed). Consider refactoring. Open
function process($server_path = null) {
$this->error = '';
$this->processed = true;
$return_mode = false;
File class.upload.php
has 2363 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// +------------------------------------------------------------------------+
// | class.upload.php |
// +------------------------------------------------------------------------+
// | Copyright (c) Colin Verot 2003-2009. All rights reserved. |
File jquery.qtip.js
has 2351 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* qTip2 - Pretty powerful tooltips - v2.0.1-108
* http://qtip2.com
*
* Copyright (c) 2013 Craig Michael Thompson
Function upload
has a Cognitive Complexity of 227 (exceeds 5 allowed). Consider refactoring. Open
function upload($file, $lang = 'en_GB') {
$this->version = '0.28';
$this->file_src_name = '';
- 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 jQuery
has 592 lines of code (exceeds 25 allowed). Consider refactoring. Open
var jQuery = (function() {
// Define a local copy of jQuery
var jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
Method upload
has 476 lines of code (exceeds 25 allowed). Consider refactoring. Open
function upload($file, $lang = 'en_GB') {
$this->version = '0.28';
$this->file_src_name = '';
File jquery.svg.js
has 863 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* http://keith-wood.name/svg.html
SVG for jQuery v1.4.5.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
Function generateCSS
has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring. Open
function generateCSS() {
var ce = document.getElementById('container'), f = document.forms[0], num = new RegExp('[0-9]+', 'g'), s, t;
ce.style.cssText = "";
- 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 parse
has 256 lines of code (exceeds 25 allowed). Consider refactoring. Open
parse: function (str, callback, additionalData) {
var root, line, lines, error = null, globalVars, modifyVars, preText = "";
i = j = currentPos = furthest = 0;
Function ajax
has 242 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;
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;
Function _addEvents
has 235 lines of code (exceeds 25 allowed). Consider refactoring. Open
_addEvents : function() {
// 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset
var t = this, i, s = t.settings, lo = {
mouseup : 'onMouseUp',
mousedown : 'onMouseDown',
Function setupIframe
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
setupIframe : function() {
var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b;
// Setup iframe body
if (!isIE || !tinymce.relaxedDomain) {