Showing 371 of 463 total issues
Avoid deeply nested control flow statements. Open
Open
} else if (value == "{") {
// Parses a JSON object, returning a new JavaScript object.
results = {};
for (;; hasMembers || (hasMembers = true)) {
value = lex();
Avoid deeply nested control flow statements. Open
Open
if (!(isFunction && property == "prototype") && !isProperty.call(members, property) && (members[property] = 1) && isProperty.call(object, property)) {
callback(property);
}
Avoid deeply nested control flow statements. Open
Open
for (index = 0, length = value.length; index < length; hasMembers || (hasMembers = true), index++) {
element = serialize(index, value, callback, properties, whitespace, indentation, stack);
results.push(element === undef ? "null" : element);
}
Avoid deeply nested control flow statements. Open
Open
} else if (getClass.call(width) == stringClass) {
whitespace = width.length <= 10 ? width : width.slice(0, 10);
}
Avoid deeply nested control flow statements. Open
Open
} else if (typeof value.toJSON == "function" && ((className != numberClass && className != stringClass && className != arrayClass) || isProperty.call(value, "toJSON"))) {
// Prototype <= 1.6.1 adds non-standard `toJSON` methods to the
// `Number`, `String`, `Date`, and `Array` prototypes. JSON 3
// ignores all `toJSON` methods on these objects unless they are
// defined directly on an instance.
Avoid deeply nested control flow statements. Open
Open
if (parseSupported) {
try {
// Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.
parseSupported = !parse('"\t"');
} catch (exception) {}
Avoid deeply nested control flow statements. Open
Open
if (value > -1 / 0 && value < 1 / 0) {
// Dates are serialized according to the `Date#toJSON` method
// specified in ES 5.1 section 15.9.5.44. See section 15.9.1.15
// for the ISO 8601 date time string format.
if (getDay) {
Avoid deeply nested control flow statements. Open
Open
if ((width -= width % 1) > 0) {
for (whitespace = "", width > 10 && (width = 10); whitespace.length < width; whitespace += " ");
}
Consider simplifying this complex logical expression. Open
Open
if (next && last && next.$$route === last.$$route
&& equals(next.pathParams, last.pathParams) && !next.reloadOnSearch && !forceReload) {
last.params = next.params;
copy(last.params, $routeParams);
$rootScope.$broadcast('$routeUpdate', last);
Consider simplifying this complex logical expression. Open
Open
if (watch && (value = watch.get(current)) !== (last = watch.last) &&
!(watch.eq
? equals(value, last)
: (typeof value == 'number' && typeof last == 'number'
&& isNaN(value) && isNaN(last)))) {
Consider simplifying this complex logical expression. Open
Open
if (!hasDirectives.hasOwnProperty(name)) {
hasDirectives[name] = [];
$provide.factory(name + Suffix, ['$injector', '$exceptionHandler',
function($injector, $exceptionHandler) {
var directives = [];
Consider simplifying this complex logical expression. Open
Open
if (typeof obj.hasOwnProperty != 'function' &&
typeof obj.constructor != 'function') {
// This is here for IE8: it is a bogus object treat it as array;
return true;
} else {
Consider simplifying this complex logical expression. Open
Open
if ( support.matchesSelector && documentIsHTML &&
( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
try {
Consider simplifying this complex logical expression. Open
Open
if ( matcher[ expando ] ) {
// Find the next relative operator (if any) for proper handling
j = ++i;
for ( ; j < len; j++ ) {
if ( Expr.relative[ tokens[j].type ] ) {
Consider simplifying this complex logical expression. Open
Open
if ( s.crossDomain == null ) {
parts = rurl.exec( s.url.toLowerCase() );
s.crossDomain = !!( parts &&
( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
Consider simplifying this complex logical expression. Open
Open
if (!(charCode >= 48 && charCode <= 57 || charCode >= 97 && charCode <= 102 || charCode >= 65 && charCode <= 70)) {
// Invalid Unicode escape sequence.
abort();
}
Function cspSafeGetterFn
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function cspSafeGetterFn(key0, key1, key2, key3, key4) {
Function NgModelController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($scope, $exceptionHandler, $attr, $element, $parse) {
Function format
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
String.format = function(format, substitutions, formatters, initialValue, append)
Function nodeLinkFn
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {