Showing 993 of 2,083 total issues
Function draw
has 262 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.CanvasGridRenderer.prototype.draw = function() {
this._ctx = this._elem.get(0).getContext("2d");
var ctx = this._ctx;
var axes = this._axes;
// Add the grid onto the grid canvas. This is the bottom most layer.
File jqplot.barRenderer.js
has 574 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
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 jqplot.funnelRenderer.js
has 564 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
File jqplot.pyramidAxisRenderer.js
has 550 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
File jqplot.donutRenderer.js
has 550 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
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 draw
has 224 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.BarRenderer.prototype.draw = function(ctx, gridData, options) {
var i;
// Ughhh, have to make a copy of options b/c it may be modified later.
var opts = $.extend({}, options);
var shadow = (opts.shadow != undefined) ? opts.shadow : this.shadow;
Function draw
has 224 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.CanvasOverlay.prototype.draw = function(plot) {
var obj,
objs = this.objects,
mr = this.markerRenderer,
start,
Function createTicks
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.LogAxisRenderer.prototype.createTicks = function(plot) {
// we're are operating on an axis here
var ticks = this._ticks;
var userTicks = this.ticks;
var name = this.name;
File jqplot.bubbleRenderer.js
has 530 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
Function createTicks
has 205 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.PyramidAxisRenderer.prototype.createTicks = function(plot) {
// we're are operating on an axis here
var userTicks = this.ticks;
// databounds were set on axis initialization.
var db = this._dataBounds;
File jquery.multiselect.js
has 492 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */
/*
* jQuery MultiSelect UI Widget 1.13
* Copyright (c) 2012 Eric Hynds
* Patched for redmine_backlogs: use selected attribute instead of this.selected for initialization
Function bar
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bar: function (inst) {
var self = this,
e = null,
_mousedown, _mouseup, _mousemove, _html;
Function pack
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jqplot.LinearAxisRenderer.prototype.pack = function(pos, offsets) {
// Add defaults for repacking from resetTickValues function.
pos = pos || {};
offsets = offsets || this._offsets;
Function SearchPanel
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
Open
function SearchPanel(name, mode, resultsPath)
{
if (!name || !mode || !resultsPath)
{ alert("Incorrect parameters to SearchPanel."); };
- 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 draw
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.draw = function(){
if (this.drawIfHidden || this.target.is(':visible')) {
this.target.trigger('jqplotPreDraw');
var i,
j,
File jqplot.mekkoAxisRenderer.js
has 479 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
File jqplot.categoryAxisRenderer.js
has 475 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0
File main.js
has 472 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
// Natural Docs is licensed under the GPL
//