Showing 1,346 of 1,992 total issues
Function CodeMirror
has a Cognitive Complexity of 1817 (exceeds 5 allowed). Consider refactoring. Open
Open
var CodeMirror = (function() {
// This is the function that produces an editor instance. It's
// closure is used to store the editor state.
function CodeMirror(place, givenOptions) {
// Determine effective options based on given values and defaults.
- 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 CodeMirror
has a Cognitive Complexity of 1817 (exceeds 5 allowed). Consider refactoring. Open
Open
var CodeMirror = (function() {
// This is the function that produces an editor instance. It's
// closure is used to store the editor state.
function CodeMirror(place, givenOptions) {
// Determine effective options based on given values and defaults.
- 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-ui.js
has 8695 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery UI 1.8.12
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
File jquery-ui.js
has 8695 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery UI 1.8.12
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
Function dataTable
has 4156 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.dataTable = function( oInit )
{
/*
* Function: classSettings
* Purpose: Settings container function for all 'class' properties which are required
Function dataTable
has 4156 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.dataTable = function( oInit )
{
/*
* Function: classSettings
* Purpose: Settings container function for all 'class' properties which are required
File jquery.js
has 6400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
File jquery.js
has 6400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
File jquery.dataTables.js
has 4633 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* File: jquery.dataTables.js
* Version: 1.8.2
* Description: Paginate, search and sort HTML tables
* Author: Allan Jardine (www.sprymedia.co.uk)
File jquery.dataTables.js
has 4633 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* File: jquery.dataTables.js
* Version: 1.8.2
* Description: Paginate, search and sort HTML tables
* Author: Allan Jardine (www.sprymedia.co.uk)
File prototype.js
has 4031 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.6.1
* (c) 2005-2009 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
File prototype.js
has 4031 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.6.1
* (c) 2005-2009 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
Function CodeMirror
has 1835 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CodeMirror = (function() {
// This is the function that produces an editor instance. It's
// closure is used to store the editor state.
function CodeMirror(place, givenOptions) {
// Determine effective options based on given values and defaults.
Function CodeMirror
has 1835 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CodeMirror = (function() {
// This is the function that produces an editor instance. It's
// closure is used to store the editor state.
function CodeMirror(place, givenOptions) {
// Determine effective options based on given values and defaults.
Function CodeMirror
has 1287 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CodeMirror(place, givenOptions) {
// Determine effective options based on given values and defaults.
var options = {}, defaults = CodeMirror.defaults;
for (var opt in defaults)
if (defaults.hasOwnProperty(opt))
Function CodeMirror
has 1287 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CodeMirror(place, givenOptions) {
// Determine effective options based on given values and defaults.
var options = {}, defaults = CodeMirror.defaults;
for (var opt in defaults)
if (defaults.hasOwnProperty(opt))
File codemirror.js
has 1837 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// All functions that need access to the editor's state live inside
// the CodeMirror function. Below that, at the bottom of the file,
// some utilities are defined.
// CodeMirror is the only global var we claim
File codemirror.js
has 1837 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// All functions that need access to the editor's state live inside
// the CodeMirror function. Below that, at the bottom of the file,
// some utilities are defined.
// CodeMirror is the only global var we claim
Function jQuery
has 595 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'
Function jQuery
has 595 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'