Showing 1,485 of 3,294 total issues
Avoid deeply nested control flow statements. Open
Open
if (!_parseRule(level === undefined ? 0 : level) && level > 0) {
return false;
}
Avoid deeply nested control flow statements. Open
Open
if (isPreprocessorDoc) {
if (!skipPrevSibling && !/^\s*@/.test(selector)) {
selectorArray.unshift(selector);
}
if (skipPrevSibling) {
Avoid deeply nested control flow statements. Open
Open
if (c === "!") {
this._state = BEFORE_DECLARATION;
this._startSection(1);
} else if (c === "?") {
this._state = IN_PROCESSING_INSTRUCTION;
Avoid deeply nested control flow statements. Open
Open
if (!isPreprocessorDoc && _hasNonWhitespace(ctx.token.string)) {
foundChars = true;
}
Avoid deeply nested control flow statements. Open
Open
} else if (ctx.token.string === "}" || ctx.token.string === ";") {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (isPreprocessorDoc && !/^\s*@/.test(selector)) {
selectorArray.push(selector);
}
Function init
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
init: function( elem, options, prop, end, easing, unit ) {
Avoid deeply nested control flow statements. Open
Open
if (c === "/") {
this._emitToken("opentagname");
this._emitSpecialToken("selfclosingtag", this._index + 2, _clonePos(this._indexPos, 2));
this._state = AFTER_SELFCLOSE_SLASH;
} else if (c === ">") {
Avoid deeply nested control flow statements. Open
Open
if (offset === 0) {
TokenUtils.moveNextToken(ctx);
}
Avoid deeply nested control flow statements. Open
Open
if (token.type === "selfclosingtag" && stack.length && stack[stack.length - 1] === this.currentTag) {
// This must have been a self-closing tag that we didn't identify as a void element
// (e.g. an SVG tag). Pop it off the stack as if we had encountered its close tag.
closeTag(token.end, token.endPos);
} else {
Avoid deeply nested control flow statements. Open
Open
if (forwardCtx.token.string.indexOf("<") === 0) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (ctx.token.string === "</") {
tokenType = CLOSING_TAG;
offset -= 2;
} else {
offset = 0;
Avoid deeply nested control flow statements. Open
Open
} else if (this._state === BEFORE_CLOSING_TAG_NAME) {
if (c === ">") {
this._state = TEXT;
} else if (this._special > 0) {
if (c === "s" || c === "S") {
Avoid deeply nested control flow statements. Open
Open
if (!voidElements.hasOwnProperty(closeTagName)) {
// Find the topmost item on the stack that matches. If we can't find one, assume
// this is just a dangling closing tag and ignore it.
var i;
for (i = stack.length - 1; i >= 0; i--) {
Avoid deeply nested control flow statements. Open
Open
if (ctxPrev.token.string === ":") {
hasColon = true;
} else if (ctxPrev.token.string === ",") {
hasComma = true;
} else if (ctxPrev.token.string === "[") {
Avoid deeply nested control flow statements. Open
Open
} else if (token.type === "attribname") {
attributeName = token.contents.toLowerCase();
// Set the value to the empty string in case this is an empty attribute. If it's not,
// it will get overwritten by the attribvalue later.
this.currentTag.attributes[attributeName] = "";
Function setMatcher
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
Avoid deeply nested control flow statements. Open
Open
if (state.state === "top") {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (!addElementDelete()) {
// Since we're not deleting and these elements don't match up, we
// must have a new element. Add an elementInsert (and log a problem
// if no insert works.)
if (!addElementInsert()) {
Avoid deeply nested control flow statements. Open
Open
} else if (!hasComma) {
return null;
}