Showing 197 of 584 total issues
File jquery.svggraph.js
has 1046 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* http://keith-wood.name/svg.html
SVG graphing extension for jQuery v1.4.3.
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.
File editor_template_src.js
has 999 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* editor_template_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
Function uniform
has 457 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.uniform = function(options) {
options = $.extend($.uniform.options, options);
var el = this;
File chosen.proto.js
has 895 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Chosen, a Select Box Enhancer for jQuery and Protoype
// by Patrick Filler for Harvest, http://getharvest.com
//
// Version 0.9.5
// Full source at https://github.com/harvesthq/chosen
Function TokenList
has 436 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.TokenList = function (input, url_or_data, settings) {
//
// Initialization
//
File chosen.jquery.js
has 881 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Chosen, a Select Box Enhancer for jQuery and Protoype
// by Patrick Filler for Harvest, http://getharvest.com
//
// Version 0.9.5
// Full source at https://github.com/harvesthq/chosen
File jquery.fancybox-1.3.4.js
has 844 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
File jquery.svg.js
has 828 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* http://keith-wood.name/svg.html
SVG for jQuery v1.4.3.
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 editor
has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring. Open
Open
TINY.editor=function(){
var c=[], offset=-30;
c['cut']=[1,'Cut','a','cut',1];
c['copy']=[2,'Copy','a','copy',1];
c['paste']=[3,'Paste','a','paste',1];
- 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
Method index
has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring. Open
Open
def index
@internships = Internship.all
# Very inefficient when users table has thousands of rows.
respond_to do |format|
- 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 jquery.svgplot.js
has 567 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* http://keith-wood.name/svg.html
SVG plotting extension for jQuery v1.4.3.
Written by Keith Wood (kbwood{at}iinet.com.au) December 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.
File map_script.js
has 528 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//defines map and oTable as global variables that will be used in various places
var map, oTable;
//initiates an empty object to store the data for internships
var internship_data = {'countries':{},'regions':{}};
//initiates the internship_locations object which stores the x,y coordinates for the map for both countries and regions
File jquery.tokeninput.js
has 523 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery Plugin: Tokenizing Autocomplete Text Entry
* Version 1.4.2
*
* Copyright (c) 2009 James Smith (http://loopj.com)
Function editor
has 199 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TINY.editor=function(){
var c=[], offset=-30;
c['cut']=[1,'Cut','a','cut',1];
c['copy']=[2,'Copy','a','copy',1];
c['paste']=[3,'Paste','a','paste',1];
File adminica_ui.js
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Adminica UI
*
* Copyright (c) 2010 Tricycle Interactive
*
File jquery.uniform.js
has 489 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
Uniform v1.7.5
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
http://pixelmatrixdesign.com
Function _nodeChanged
has 187 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_nodeChanged : function(ed, cm, n, co, ob) {
var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, fc, bc, formatNames, matches;
tinymce.each(t.stateControls, function(c) {
cm.setActive(c, ed.queryCommandState(t.controls[c][1]));
Function _start
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_start = function() {
var obj = selectedArray[ selectedIndex ],
href,
type,
title,
File ejs.js
has 406 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(){
var rsplit = function(string, regex) {
var result = regex.exec(string),retArr = new Array(), first_idx, last_idx, first_bit;
File jquery.svganim.js
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* http://keith-wood.name/svg.html
SVG attribute animations for jQuery v1.4.3.
Written by Keith Wood (kbwood{at}iinet.com.au) June 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.