Showing 1,798 of 3,223 total issues
File wordlift-reloaded.js
has 1251 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function() {
var $, Traslator, container, injector,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
Traslator = (function() {
Function lex
has 643 lines of code (exceeds 25 allowed). Consider refactoring. Open
var lex = (function lex() {
var character, from, line, s;
// Private lex methods
File globalize.js
has 1162 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* Globalize
*
* http://github.com/jquery/globalize
*
Function Slider
has 567 lines of code (exceeds 25 allowed). Consider refactoring. Open
VMM.Slider = function(parent, parent_config) {
var config,
timer,
$slider,
File editor_template_src.js
has 1087 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* editor_template_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
File editor_plugin_src.js
has 1065 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
Function TableGrid
has 532 lines of code (exceeds 25 allowed). Consider refactoring. Open
function TableGrid(table, dom, selection) {
var grid, startPos, endPos, selectedCell;
buildGrid();
selectedCell = dom.getParent(selection.getStart(), 'th,td');
Function Quirks
has a Cognitive Complexity of 129 (exceeds 5 allowed). Consider refactoring. Open
tinymce.util.Quirks = function(editor) {
var VK = tinymce.VK, BACKSPACE = VK.BACKSPACE, DELETE = VK.DELETE, dom = editor.dom, selection = editor.selection,
settings = editor.settings, parser = editor.parser, serializer = editor.serializer, each = tinymce.each;
function setEditorCommandState(cmd, state) {
- 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 token
has 514 lines of code (exceeds 25 allowed). Consider refactoring. Open
token: function () {
var b, c, captures, d, depth, high, i, l, low, q, t, isLiteral, isInRange, n;
function match(x) {
var r = x.exec(s), r1;
Function init
has 512 lines of code (exceeds 25 allowed). Consider refactoring. Open
init : function(ed, url) {
var winMan, clipboardRows, hasCellSelection = true; // Might be selected cells on reload
function createTableGrid(node) {
var selection = ed.selection, tblElm = ed.dom.getParent(node || selection.getNode(), 'table');
File jquery.ui.effect.js
has 987 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery UI Effects 1.10.3
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
Function Timeline
has 489 lines of code (exceeds 25 allowed). Consider refactoring. Open
VMM.Timeline = function(_timeline_id, w, h) {
var $timeline,
$container,
$feature,
Function Range
has 481 lines of code (exceeds 25 allowed). Consider refactoring. Open
function Range(dom) {
var t = this,
doc = dom.doc,
EXTRACT = 0,
CLONE = 1,
Function Slide
has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring. Open
VMM.Slider.Slide = function(d, _parent) {
var $media, $text, $slide, $wrap, element, c,
data = d,
slide = {},
- 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 createAPIMap
has a Cognitive Complexity of 115 (exceeds 5 allowed). Consider refactoring. Open
createAPIMap: function(m) {
var map_attribution = "",
layer,
map,
map_options,
- 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 buildData
has a Cognitive Complexity of 115 (exceeds 5 allowed). Consider refactoring. Open
buildData: function(d) {
VMM.fireEvent(global, VMM.Timeline.Config.events.messege, "Parsing Data");
var _data_obj = VMM.Timeline.DataObj.data_template_obj;
_data_obj.timeline.startDate = new Date(d.content.date.created);;
- 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.sortable.js
has 909 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery UI Sortable 1.10.3
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
Function Styles
has a Cognitive Complexity of 110 (exceeds 5 allowed). Consider refactoring. Open
tinymce.html.Styles = function(settings, schema) {
var rgbRegExp = /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,
urlOrStrRegExp = /(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,
styleRegExp = /\s*([^:]+):\s*([^;]+);?/g,
trimRightRegExp = /\s+$/,
- 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 angular-animate.js
has 898 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* @license AngularJS v1.2.14
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Function DomParser
has 436 lines of code (exceeds 25 allowed). Consider refactoring. Open
tinymce.html.DomParser = function(settings, schema) {
var self = this, nodeFilters = {}, attributeFilters = [], matchedNodes = {}, matchedAttributes = {};
settings = settings || {};
settings.validate = "validate" in settings ? settings.validate : true;