Showing 259 of 259 total issues
Avoid deeply nested control flow statements. Open
Open
} else if (t.value === 'maxlen' && 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}'.",
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 (i <= 0) {
error("A '<{a}>' must be within '<{b}>'.",
token, n, 'body');
}
Avoid deeply nested control flow statements. Open
Open
if (nexttoken.id === '(end)' || nexttoken.id === '(error)') {
error("Missing '>'.", nexttoken);
}
Avoid deeply nested control flow statements. Open
Open
if (option.newcap && (i < 'A' || i > 'Z')) {
warning(
"A constructor name should start with an uppercase letter.",
token);
}
Avoid deeply nested control flow statements. Open
Open
if (d.isDigit()) {
if (token.id !== '.' && xmode !== 'styleproperty') {
warningAt("Don't use extra leading zeros '{a}'.",
line, character, t);
}
Avoid deeply nested control flow statements. Open
Open
} else if (a === 'style') {
xmode = 'scriptstring';
advance('=');
q = nexttoken.id;
if (q !== '"' && q !== "'") {
Avoid deeply nested control flow statements. Open
Open
if (option.undef) {
warning("'{a}' is not defined.", token, v);
} else {
funct[v] = true;
}
Avoid deeply nested control flow statements. Open
Open
if (/([^\)]+)\(/.test(parts[i])){
colorType = RegExp.$1.toUpperCase();
}
Avoid deeply nested control flow statements. Open
Open
if (!(prop == "padding" && value.parts.length === 2 && value.parts[1].value === 0)){
reporter.report("Using width with " + prop + " can sometimes make elements larger than you expect.", properties[prop].line, properties[prop].col, rule);
}
Avoid deeply nested control flow statements. Open
Open
if (modifier.type == "class"){
classCount++;
}
Avoid deeply nested control flow statements. Open
Open
if (!lastProperty || (lastProperty.property.text.toLowerCase() != name || lastProperty.colorType != "compat")){
reporter.report("Fallback " + name + " (hex or RGB) should precede " + colorType + " " + name + ".", event.line, event.col, rule);
}
Avoid deeply nested control flow statements. Open
Open
if (part.elementName && modifier.type == "id"){
reporter.report("Element (" + part + ") is overqualified, just use " + modifier + " without element name.", part.line, part.col, rule);
} else if (modifier.type == "class"){
if (!classes[modifier]){
Avoid deeply nested control flow statements. Open
Open
for (;;) {
b = true;
c = s.charAt(l);
l += 1;
switch (c) {
Avoid deeply nested control flow statements. Open
Open
if (i >= 0) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (i >= 0) {
errorAt("Nested HTML comment.",
line, character + i);
}
Avoid deeply nested control flow statements. Open
Open
if (q !== '"' && q !== "'") {
error("Missing quote.");
}
Avoid deeply nested control flow statements. Open
Open
if (nexttoken.id === ')') {
warning("Use the array literal notation [].", token);
} else {
i = parse(0);
c.dimension = i;
Avoid deeply nested control flow statements. Open
Open
if (combinator !== null){
this._unexpectedToken(tokenStream.LT(1));
}
Avoid deeply nested control flow statements. Open
Open
if (combinator !== null){
selector.push(combinator);
} else {
selector.push(ws);
}