Showing 1,485 of 3,294 total issues
Avoid deeply nested control flow statements. Open
Open
if (tag[0] === "#" || tag[0] === "~" || tag[0] === "^") {
tagStack.push(tag.substr(1));
} else if (tag[0] === "/" &&
(_.last(tagStack) === tag.substr(1) || _.last(tagStack) === "*" + tag.substr(1))) {
tagStack.pop();
Avoid deeply nested control flow statements. Open
Open
if (!hidden) {
shouldHide.push(i); // lines below end line should be hidden
}
Function SymbolInformation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SymbolInformation(label, fullPath, selectionRange, type, scope, isDocumentSymbolRequest) {
Avoid deeply nested control flow statements. Open
Open
if (range) {
mark = marker(opts.indicatorFolded);
} else {
cm.findMarksAt(pos).filter(isFold)
.forEach(clear);
Avoid deeply nested control flow statements. Open
Open
if (self.cachedHints.deferred &&
self.cachedHints.deferred.state() === "pending") {
self.cachedHints.deferred.reject();
self.cachedHints.deferred = null;
}
Avoid deeply nested control flow statements. Open
Open
if (range && range.to.line - range.from.line >= minFoldSize) {
mark = marker(opts.indicatorOpen);
}
Avoid deeply nested control flow statements. Open
Open
if (hints[i].toLowerCase().indexOf(query) === 0) {
foundPrefix = true;
break;
}
Function error
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function error(m, t, a, b, c, d) {
Avoid deeply nested control flow statements. Open
Open
switch (col) {
case 0: calender += ' ui-datepicker-group-first';
cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;
case numMonths[1]-1: calender += ' ui-datepicker-group-last';
cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;
Avoid deeply nested control flow statements. Open
Open
if (lookAhead("'"))
output += "'";
else
literal = true;
Function warning
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function warning(m, t, a, b, c, d) {
Avoid deeply nested control flow statements. Open
Open
if (jsonmode) {
warningAt("Avoid \\v.", line, character);
}
Avoid deeply nested control flow statements. Open
Open
for (i = 0; i < k.length; i += 1) {
predefined[k[i]] = !!a[k[i]];
}
Avoid deeply nested control flow statements. Open
Open
if (data.member[k] === 1) {
n = '<i>' + n + '</i>';
}
Function dirNodeCheck
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
Avoid deeply nested control flow statements. Open
Open
} else if (t.value === 'maxlen' && (o === '/*jshint' || o === '/*jslint')) {
b = +v.value;
if (typeof b !== 'number' || !isFinite(b) || b <= 0 ||
Math.floor(b) !== b) {
error("Expected a small integer and instead saw '{a}'.",
Avoid deeply nested control flow statements. Open
Open
if (left.value === 'Math') {
warning("Math is not a function.", left);
} else if (option.newcap) {
warning(
"Missing 'new' prefix when invoking a constructor.", left);
Avoid deeply nested control flow statements. Open
Open
if ( date ) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (!nextLine()) {
errorAt("Unclosed comment.", line, character);
}
Avoid deeply nested control flow statements. Open
Open
if (l + n.length > 72) {
o.push(m + '<br>');
m = ' ';
l = 1;
}