Showing 200 of 421 total issues
Function dayOfYearFromWeekInfo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dayOfYearFromWeekInfo(config) {
var w, weekYear, week, weekday, dow, doy, temp;
w = config._w;
if (w.GG != null || w.W != null || w.E != null) {
Function start
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function( callback ) {
var that = this,
editor = this.editor,
doc = this.doc,
el, elfp, x, y;
Function get
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
text.get = function (url, callback, errback, headers) {
var xhr = text.createXhr(), header;
xhr.open('GET', url, true);
//Allow plugins direct access to xhr headers
Function applyOptions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyOptions() {
if (opts.showPaletteOnly) {
opts.showPalette = true;
}
Function init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (config) {
var Grid = Ractive.extend({
isolated: false,
template: followTemplate,
data: {
Function get_opcodes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.get_opcodes = function () {
if (this.opcodes != null) return this.opcodes;
var i = 0;
var j = 0;
var answer = [];
Consider simplifying this complex logical expression. Open
Open
if (dragging) {
// Mouseup happened outside of window
if (IE && doc.documentMode < 9 && !e.button) {
return stop();
}
Consider simplifying this complex logical expression. Open
Open
if (contextSize && opcodes.length > 1 && ((idx > 0 && i == contextSize) || (idx == 0 && i == 0)) && change=="equal") {
var jump = rowcnt - ((idx == 0 ? 1 : 2) * contextSize);
if (jump > 1) {
toprows.push(node = document.createElement("tr"));
Function createDate
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createDate (y, m, d, h, M, s, ms) {
Avoid deeply nested control flow statements. Open
Open
if (!loose) loose = next;
Avoid deeply nested control flow statements. Open
Open
} else if ( groupStarted ) {
output.push( '</span>' );
groupStarted = 0;
}
Avoid deeply nested control flow statements. Open
Open
for (i = 0 ; i < context_numBits ; i++) {
context_data_val = (context_data_val << 1) | value;
if (context_data_position == bitsPerChar - 1) {
context_data_position = 0;
context_data.push(getCharFromInt(context_data_val));
Avoid deeply nested control flow statements. Open
Open
if (bull !== b && !(bull.length > 1 && b.length > 1)) {
src = cap.slice(i + 1).join('\n') + src;
i = l - 1;
}
Avoid deeply nested control flow statements. Open
Open
if (context_data_position == bitsPerChar - 1) {
context_data_position = 0;
context_data.push(getCharFromInt(context_data_val));
context_data_val = 0;
} else {
Avoid deeply nested control flow statements. Open
Open
if (err) {
err.requireMap = this.map;
err.requireModules = this.map.isDefine ? [this.map.id] : null;
err.requireType = this.map.isDefine ? 'define' : 'require';
return onError((this.error = err));
Avoid deeply nested control flow statements. Open
Open
if (context_data_position == bitsPerChar - 1) {
context_data_position = 0;
context_data.push(getCharFromInt(context_data_val));
context_data_val = 0;
} else {
Avoid deeply nested control flow statements. Open
Open
if ( index > 0 ) {
toolbarObj.previous = toolbars[ index - 1 ];
toolbarObj.previous.next = toolbarObj;
}
Avoid deeply nested control flow statements. Open
Open
if (context_data_position == bitsPerChar - 1) {
context_data_position = 0;
context_data.push(getCharFromInt(context_data_val));
context_data_val = 0;
} else {
Avoid deeply nested control flow statements. Open
Open
if (mapValue) {
mapValue = getOwn(mapValue, nameSegment);
if (mapValue) {
//Match, update name to the new value.
foundMap = mapValue;
Avoid deeply nested control flow statements. Open
Open
if (this.map.isDefine && exports === undefined) {
cjsModule = this.module;
if (cjsModule) {
exports = cjsModule.exports;
} else if (this.usingExports) {