Showing 1,798 of 3,223 total issues
Function labelled
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
blockstmt("for", function () {
var s, t = nexttoken;
funct["(breakage)"] += 1;
funct["(loopage)"] += 1;
increaseComplexityCount();
Util
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
Open
VMM.Util = ({
init: function() {
return this;
},
Function createControl
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createControl: function(name, cm) {
var t = this, btn, format, editor = t.editor;
if (name == 'numlist' || name == 'bullist') {
// Default to first item if it's a default item
Function addRange
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addRange = function(rng) {
var ieRng, ctrlRng, startContainer, startOffset, endContainer, endOffset, sibling,
doc = selection.dom.doc, body = doc.body, nativeRng, ctrlElm;
function setEndPoint(start) {
Function send
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
send: function( headers, complete ) {
// Get a new xhr
var handle, i,
xhr = s.xhr();
Function init
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init() {
tinyMCEPopup.resizeToInnerSize();
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
Function _keydown
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
/*jshint maxcomplexity:20*/
var match, prev, character, skip, regex,
preventDefault = true;
Function _keydown
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
/*jshint maxcomplexity:20*/
var match, prev, character, skip, regex,
preventDefault = true;
Function data
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3_selectionPrototype.data = function(value, key) {
var i = -1, n = this.length, group, node;
if (!arguments.length) {
value = new Array(n = (group = this[0]).length);
while (++i < n) {
Function thumbnail
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
thumbnail: function(data, w, h, uid) {
var _w = 16,
_h = 24,
_uid = "";
Function init
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init() {
tinyMCEPopup.resizeToInnerSize();
var formObj = document.forms[0];
var inst = tinyMCEPopup.editor;
Function walk
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.walk = function(rng, callback) {
var startContainer = rng.startContainer,
startOffset = rng.startOffset,
endContainer = rng.endContainer,
endOffset = rng.endOffset,
Function ForceBlocks
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tinymce.ForceBlocks = function(editor) {
var settings = editor.settings, dom = editor.dom, selection = editor.selection, blockElements = editor.schema.getBlockElements();
function addRootBlocks() {
var node = selection.getStart(), rootNode = editor.getBody(), rng, startContainer, startOffset, endContainer, endOffset, rootBlockNode, tempNode, offset = -0xFFFFFF, wrapped, isInEditorDocument;
Function mceInsertContent
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mceInsertContent : function(command, ui, value) {
var parser, serializer, parentNode, rootNode, fragment, args,
marker, nodeRect, viewPortRect, rng, node, node2, bookmarkHtml, viewportBodyElement;
//selection.normalize();
Lib
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
VMM.Lib = {
init: function() {
return this;
},
Function init
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init(ed) {
var ce = document.getElementById('container'), h;
existingStyles = aggregateStyles(tinyMCEPopup.getWindowArg('styles'));
ce.style.cssText = tinyMCEPopup.editor.dom.serializeStyle(existingStyles);
Function getAttrib
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAttrib : function(e, n, dv) {
var v, t = this, undef;
e = t.get(e);
Function Element
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tinymce.dom.Element = function(id, settings) {
var t = this, dom, el;
t.settings = settings = settings || {};
t.id = id;
Function Serializer
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tinymce.html.Serializer = function(settings, schema) {
var self = this, writer = new tinymce.html.Writer(settings);
settings = settings || {};
settings.validate = "validate" in settings ? settings.validate : true;
Function formatDate
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formatDate: function (format, date, settings) {
if (!date) {
return "";
}