Showing 171 of 259 total issues
Avoid deeply nested control flow statements. Open
Open
if (i >= 0) {
break;
}
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 (t.length !== 4 && t.length !== 7) {
warningAt("Bad hex color '{a}'.", line,
from + l, t);
}
Avoid deeply nested control flow statements. Open
Open
if (option.adsafe) {
if (adsafe_id) {
if (v.slice(0, adsafe_id.length) !== adsafe_id) {
warning("ADsafe violation: An id must have a '{a}' prefix",
nexttoken, adsafe_id);
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 (q !== '"' && q !== "'") {
error("Missing quote.");
}
Avoid deeply nested control flow statements. Open
Open
if (tokenStream.LA(3) == Tokens.EQUALS && this.options.ieFilters){
value = this._ie_function();
} else {
value = this._function();
}
Avoid deeply nested control flow statements. Open
Open
if (nexttoken.id === '%') {
advance('%');
if (number > 100) {
warning("Expected a percentage and instead saw '{a}'",
token, number);
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
switch (s[v]) {
case 'function':
case 'var':
case 'unused':
s[v] = 'closure';
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 (!(prop == "padding" && value.parts.length === 2 && value.parts[0].value === 0)){
reporter.report("Using height 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 (i >= 0) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (option.undef) {
warning("'{a}' is not defined.", token, v);
} else {
funct[v] = true;
}
Function warning
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function warning(m, t, a, b, c, d) {
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
if (typeof b !== 'number' || !isFinite(b) || b <= 0 ||
Math.floor(b) !== b) {
error("Expected a small integer and instead saw '{a}'.",
v, v.value);
}
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}'.",
Avoid deeply nested control flow statements. Open
Open
if (classCount > 1){
reporter.report("Don't use adjoining classes.", part.line, part.col, rule);
}
Avoid deeply nested control flow statements. Open
Open
if (modifier.type == "id"){
idCount++;
}