Showing 5,781 of 10,536 total issues
Avoid deeply nested control flow statements. Open
Open
if (date) {
if (i2 == i+1) {
res += "'";
}else{
res += format.substring(i+1, i2);
Avoid deeply nested control flow statements. Open
Open
for (i2=i+1; i2<len; i2++) {
if (format.charAt(i2) == ']') {
var subformat = format.substring(i+1, i2);
var subres = formatDate(date, subformat, options);
if (subres != formatDate(otherDate, subformat, options)) {
Function eventResize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function eventResize(e, event, dayDelta, minuteDelta, ev, ui) {
Avoid deeply nested control flow statements. Open
Open
if (
button.hasClass(tm + '-state-active') ||
button.hasClass(tm + '-state-disabled')
) {
button.removeClass(tm + '-state-hover');
Avoid deeply nested control flow statements. Open
Open
if (option.selected) {
formData.append(inputName, option.value);
}
Avoid deeply nested control flow statements. Open
Open
if (helperRes) {
rect.position = 'absolute';
selectionHelper = $(helperRes)
.css(rect)
.appendTo(slotContainer);
Function plotBars
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function plotBars(datapoints, barLeft, barRight, fillStyleCallback, axisx, axisy) {
Function removeText
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Canvas.prototype.removeText = function(layer, x, y, text, font, angle) {
Avoid deeply nested control flow statements. Open
Open
if (format.charAt(i2) == ')') {
var subres = formatDate(date, format.substring(i+1, i2), options);
if (parseInt(subres.replace(/\D/, ''), 10)) {
res += subres;
}
Avoid deeply nested control flow statements. Open
Open
if (val != null) {
f = format[m];
// extract min/max info
if (f.autoscale !== false) {
if (f.x) {
Avoid deeply nested control flow statements. Open
Open
if (val < ymin)
ymin = val;
Avoid deeply nested control flow statements. Open
Open
for (var j = 0, jlen = args[2][0].length; j < jlen; j++) {
if (angular.isFunction(args[2][0][j])) {
callInvoke(args[2][0][j]);
}
}
Avoid deeply nested control flow statements. Open
Open
for (m = 0; m < ps; ++m)
points[k + ps + m] = points[k + m];
Function buildCalendar
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
buildCalendar: function (month, year, hour, minute, second, side) {
Avoid deeply nested control flow statements. Open
Open
if (span < timeUnitSize.year) {
fmt = "Q%q";
} else {
fmt = "Q%q %Y";
}
Avoid deeply nested control flow statements. Open
Open
if (invoked === -1) {
regConfigs.push(moduleName + '-' + fct);
}
Avoid deeply nested control flow statements. Open
Open
for (var key in styleCache) {
if (hasOwnProperty.call(styleCache, key)) {
var positions = styleCache[key].positions;
for (var i = 0, position; position = positions[i]; i++) {
position.active = false;
Avoid deeply nested control flow statements. Open
Open
if (val < xmin)
xmin = val;
Avoid deeply nested control flow statements. Open
Open
if (val > xmax)
xmax = val;
Avoid deeply nested control flow statements. Open
Open
if (val > ymax)
ymax = val;