Showing 759 of 1,838 total issues
File jqueryui.min.js
has 12607 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! jQuery UI - v1.11.4 - 2015-10-04
* 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 */
File jquery-ui-1.8.11.custom.js
has 8886 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery UI 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
File jquery.min.js
has 6841 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
Function Sizzle
has 1355 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function( window ) {
var i,
support,
Expr,
File bootstrap.js
has 1325 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* ===================================================
* bootstrap-transition.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
Function galleriffic
has 596 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
xoops_smallworld.fn.galleriffic = function (settings) {
// Extend Gallery Object
xoops_smallworld.extend(this, {
// Returns the version of the script
version: xoops_smallworld.galleriffic.version,
File smallworld.js
has 1070 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jQuery configs, selectors and functions for Xoops Smallworld
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
File functions.php
has 1026 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
File jquery.oembed.js
has 956 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jquery oembed plugin
*
* Copyright (c) 2009 Richard Chamorro
* Licensed under the MIT license
File jquery.fileupload.js
has 856 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery File Upload Plugin 5.21
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
File jquery.colorbox.js
has 774 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
jQuery ColorBox v1.4.6 - 2013-03-19
(c) 2013 Jack Moore - jacklmoore.com/colorbox
license: http://www.opensource.org/licenses/mit-license.php
*/
File jquery.fileupload-ui.js
has 687 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery File Upload User Interface Plugin 7.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
File jquery.galleriffic.js
has 663 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jQuery Galleriffic plugin
*
* Copyright (c) 2008 Trent Foley (http://trentacular.com)
* Licensed under the MIT License:
File UploadHandler.php
has 647 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace XoopsModules\Smallworld;
/*
File jquery.countdown.js
has 617 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* http://keith-wood.name/countdown.html
Countdown for jQuery v1.5.10.
Written by Keith Wood (kbwood{at}iinet.com.au) January 2008.
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 ajaxSubmit
has 255 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.ajaxSubmit = function (options) {
// fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
if (!this.length) {
log('ajaxSubmit: skipping submit process - no element selected');
return this;
Function ajax
has 240 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function( url, options ) {
// If url is an object, simulate pre-1.5 signature
if ( typeof url === "object" ) {
options = url;
Function _tabify
has 229 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_tabify: function (init) {
var self = this,
o = this.options,
fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
Function setDocument
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setDocument = Sizzle.setDocument = function( node ) {
var hasCompare, parent,
doc = node ? node.ownerDocument || node : preferredDoc;
// If no document and documentElement is available, return
Function truncateHtml
has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function truncateHtml($text, $length = 100, $ending = '...', $exact = false, $considerHtml = true)
{
if ($considerHtml) {
// if the plain text is shorter than the maximum length, return the whole text
if (mb_strlen(preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
- 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"