Showing 1,798 of 3,223 total issues
Function init
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function(ed, url) {
var t = this, s = {}, de = DOM.doc.documentElement, vp, fullscreen_overflow, fullscreen_html_overflow, fullscreen_scrollx, fullscreen_scrolly, posCss, bookmark;
// Register commands
ed.addCommand('mceFullScreen', function() {
File jquery-migrate.js
has 379 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery Migrate - v1.2.1 - 2013-05-08
* https://github.com/jquery/jquery-migrate
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
*/
Function buildDataCells
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildDataCells: function(d) {
var data_obj = VMM.Timeline.DataObj.data_template_obj,
is_valid = false,
cellnames = ["timeline"],
list = [],
Function Callbacks
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.Callbacks = function( options ) {
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
options = typeof options === "string" ?
File editor_plugin_src.js
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
Function bounds
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.geo.bounds = function() {
var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
var bound = {
point: point,
lineStart: lineStart,
Function equiv
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QUnit.equiv = (function() {
// Call the o related callback with the given arguments.
function bindCallbacks( o, callbacks, args ) {
var prop = QUnit.objectType( o );
File jquery.ui.spinner.js
has 376 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery UI Spinner 1.10.3
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
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 handleKey
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleKey(ed, e) {
var keyCode = e.keyCode, nonEditableParent, caretContainer, startElement, endElement;
function getNonEmptyTextNodeSibling(node, prev) {
while (node = node[prev ? 'previousSibling' : 'nextSibling']) {
File heartbeat.js
has 372 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Heartbeat API
*
* Note: this API is "experimental" meaning it will likely change a lot
* in the next few releases based on feedback from 3.6.0. If you intend
Function $get
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {
/**
* @ngdoc service
* @name $route
Function animate
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
Open
animate: function(element, duration, ease, att, que, callback_function) {
var _ease = "easein",
_que = false,
_duration = 1000,
- 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 wordlift.ui.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
var $;
$ = jQuery;
Function resourceFactory
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resourceFactory(url, paramDefaults, actions) {
var route = new Route(url);
actions = extend({}, DEFAULT_ACTIONS, actions);
Function animationRunner
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function animationRunner(element, animationEvent, className) {
//transcluded directives may sometimes fire an animation using only comment nodes
//best to catch this early on to prevent any animation operations from occurring
var node = element[0];
if(!node) {
Function axis
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.axis = function() {
var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
function axis(g) {
g.each(function() {
var g = d3.select(this);
Function getHTML4
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getHTML4() {
var html4 = mapCache.html4;
if (!html4) {
// This is the XHTML 1.0 transitional elements with it's attributes and children packed to reduce it's size
Function ScriptLoader
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tinymce.dom.ScriptLoader = function(settings) {
var QUEUED = 0,
LOADING = 1,
LOADED = 2,
states = {},
Function getHTML4
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getHTML4() {
var html4 = mapCache.html4;
if (!html4) {
// This is the XHTML 1.0 transitional elements with it's attributes and children packed to reduce it's size