Showing 170 of 256 total issues
File jquery-1.7.1.min.js
has 6373 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Downloaded from http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js, 2012-02-04 23:26
*/
/*!
Function jQuery
has 592 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'
File bootstrap.js
has 1060 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* ===================================================
* bootstrap-transition.js v2.0.0
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
File jquery.iviewer.js
has 700 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* iviewer Widget for jQuery UI
* https://github.com/can3p/iviewer
*
* Copyright (c) 2009 - 2012 Dmitry Petrov
Function ajax
has 242 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;
File jquery.dotdotdot-1.5.9.js
has 520 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery dotdotdot 1.5.9
*
* Copyright (c) 2013 Fred Heusschen
* www.frebsite.nl
Function dotdotdot
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.dotdotdot = function( o )
{
if ( this.length == 0 )
{
if ( !o || o.debug !== false )
Function support
has 159 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.support = (function() {
var support,
all,
a,
Function splitter
has 159 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.splitter = function(args) {
args = args || {};
return this.each(function() {
var zombie; // left-behind splitbar for outline resizes
function startSplitMouse(evt) {
Function Callbacks
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.Callbacks = function( flags ) {
// Convert flags from String-formatted to Object-formatted
// (we check in cache first)
flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
File jquery.panzoom.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery PanZoom Plugin
* Pan and zoom an image within a parent div.
*
* version: 0.9.0
Consider simplifying this complex logical expression. Open
Open
if ( event.pageX == null && original.clientX != null ) {
eventDoc = event.target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
Function Sizzle
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Sizzle = function( selector, context, results, seed ) {
results = results || [];
context = context || document;
var origContext = context;
Function cookie
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
Open
jQuery.cookie = function(name, value, options)
{
if (typeof value != 'undefined')
{ // name and value given, set cookie
options = options || {};
- 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 treeview
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeview: function(settings) {
settings = $.extend({
cookieId: "treeview"
}, settings);
Function bind_events
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$dot.bind_events = function()
{
$dot.bind(
'update.dot',
function( e, c )
Function trigger
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
// Don't do events on text and comment nodes
if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
return;
}
Function send
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
send: function( headers, complete ) {
// Get a new xhr
var xhr = s.xhr(),
handle,
Function clean
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clean: function( elems, context, fragment, scripts ) {
var checkScriptType;
context = context || document;
Function animate
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
animate: function( prop, speed, easing, callback ) {
var optall = jQuery.speed( speed, easing, callback );
if ( jQuery.isEmptyObject( prop ) ) {
return this.each( optall.complete, [ false ] );