Showing 1,346 of 1,992 total issues
Function Enumerable
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Enumerable = (function() {
function each(iterator, context) {
var index = 0;
try {
this._each(function(value) {
Function Enumerable
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Enumerable = (function() {
function each(iterator, context) {
var index = 0;
try {
this._each(function(value) {
Methods
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
Open
Element.Methods = {
visible: function(element) {
return $(element).style.display != 'none';
},
Methods
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
Open
Element.Methods = {
visible: function(element) {
return $(element).style.display != 'none';
},
Class Nic
has 55 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class ::Nic
include Comparable
private
@@interfaces = Hash.new
@nic = nil
File nic.rb
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class ::Nic
include Comparable
private
@@interfaces = Hash.new
@nic = nil
Method network_update
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
Open
def network_update(deployment_id, network_id, conduit_id, subnet, dhcp_enabled, ip_ranges, router_pref, router_ip)
Rails.logger.debug("Entering update_network #{id}")
network = nil
begin
- 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 _fnScrollDraw
has 185 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnScrollDraw ( o )
{
var
nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
Function _fnScrollDraw
has 185 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnScrollDraw ( o )
{
var
nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
Function support
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.support = (function() {
var div = document.createElement( "div" ),
documentElement = document.documentElement,
all,
Function support
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.support = (function() {
var div = document.createElement( "div" ),
documentElement = document.documentElement,
all,
Function classSettings
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function classSettings ()
{
this.fnRecordsTotal = function ()
{
if ( this.oFeatures.bServerSide ) {
Function classSettings
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function classSettings ()
{
this.fnRecordsTotal = function ()
{
if ( this.oFeatures.bServerSide ) {
File jquery.spritely-0.6.1.js
has 455 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery spritely 0.6.1
* http://spritely.net/
*
* Documentation:
File jquery.spritely-0.6.1.js
has 455 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery spritely 0.6.1
* http://spritely.net/
*
* Documentation:
Function _fnDraw
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDraw( oSettings )
{
var i, iLen;
var anRows = [];
var iRowCount = 0;
Function _fnDraw
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDraw( oSettings )
{
var i, iLen;
var anRows = [];
var iRowCount = 0;
Function DragDropHelpers
has 167 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DragDropHelpers = new function () {
var me = this;
var draggableNodes;
Function DragDropHelpers
has 167 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DragDropHelpers = new function () {
var me = this;
var draggableNodes;
Function _generateHTML
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateHTML: function(inst) {
var today = new Date();
today = this._daylightSavingAdjust(
new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
var isRTL = this._get(inst, 'isRTL');