daniellmb/AQUA

View on GitHub

Showing 97 of 176 total issues

Function newContext has 934 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function newContext(contextName) {
        var inCheckLoaded, Module, context, handlers,
            checkLoadedTimeoutId,
            config = {
                //Defaults. Do not set a default for map
Severity: Major
Found in demos/requirejs/bower_components/requirejs/require.js - About 4 days to fix

File require.js has 1249 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/** vim: et:ts=4:sw=4:sts=4
 * @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
Severity: Major
Found in demos/requirejs/bower_components/requirejs/require.js - About 3 days to fix

File angular-mocks.js has 866 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.2.21
 * (c) 2010-2014 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Major
Found in demos/requirejs/bower_components/mocks/angular-mocks.js - About 2 days to fix

File angular-mocks.js has 861 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.2.16
 * (c) 2010-2014 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Major
Found in demos/angularjs/bower_components/angular-mocks/angular-mocks.js - About 2 days to fix

Function $RouteProvider has 185 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $RouteProvider(){
  function inherit(parent, extra) {
    return angular.extend(new (angular.extend(function() {}, {prototype:parent}))(), extra);
  }

Severity: Major
Found in demos/angularjs/bower_components/angular-route/angular-route.js - About 7 hrs to fix

Function createHttpBackendMock has 141 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createHttpBackendMock($rootScope, $delegate, $browser) {
  var definitions = [],
      expectations = [],
      responses = [],
      responsesPush = angular.bind(responses, responses.push),
Severity: Major
Found in demos/angularjs/bower_components/angular-mocks/angular-mocks.js - About 5 hrs to fix

Function createHttpBackendMock has 141 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createHttpBackendMock($rootScope, $delegate, $browser) {
  var definitions = [],
      expectations = [],
      responses = [],
      responsesPush = angular.bind(responses, responses.push),
Severity: Major
Found in demos/requirejs/bower_components/mocks/angular-mocks.js - About 5 hrs to fix

File jquery-1.9.js has 396 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright 2011 The Closure Compiler Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
Severity: Minor
Found in externs/jquery-1.9.js - About 5 hrs to fix

Function $get has 123 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {

    /**
     * @ngdoc service
     * @name $route
Severity: Major
Found in demos/angularjs/bower_components/angular-route/angular-route.js - About 4 hrs to fix

File angular-1.2.js has 338 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright 2012 The Closure Compiler Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
Severity: Minor
Found in externs/angular-1.2.js - About 4 hrs to fix

Function callPlugin has 94 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            callPlugin: function () {
                var map = this.map,
                    id = map.id,
                    //Map already normalized the prefix.
                    pluginMap = makeModuleMap(map.prefix);
Severity: Major
Found in demos/requirejs/bower_components/requirejs/require.js - About 3 hrs to fix

Function TzDate has 93 lines of code (exceeds 25 allowed). Consider refactoring.
Open

angular.mock.TzDate = function (offset, timestamp) {
  var self = new Date(0);
  if (angular.isString(timestamp)) {
    var tsStr = timestamp;

Severity: Major
Found in demos/angularjs/bower_components/angular-mocks/angular-mocks.js - About 3 hrs to fix

Function TzDate has 93 lines of code (exceeds 25 allowed). Consider refactoring.
Open

angular.mock.TzDate = function (offset, timestamp) {
  var self = new Date(0);
  if (angular.isString(timestamp)) {
    var tsStr = timestamp;

Severity: Major
Found in demos/requirejs/bower_components/mocks/angular-mocks.js - About 3 hrs to fix

Function makeRequire has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            makeRequire: function (relMap, options) {
                options = options || {};

                function localRequire(deps, callback, errback) {
                    var id, map, requireMod;
Severity: Major
Found in demos/requirejs/bower_components/requirejs/require.js - About 3 hrs to fix

Function _ has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var _ = (function (_) {
        _.defaults = function (object) {
            if (!object) {
                return object;
            }
Severity: Major
Found in demos/angularjs/bower_components/todomvc-common/base.js - About 3 hrs to fix

Function _ has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var _ = (function (_) {
        _.defaults = function (object) {
            if (!object) {
                return object;
            }
Severity: Major
Found in demos/requirejs/bower_components/todomvc-common/base.js - About 3 hrs to fix

Function _ has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var _ = (function (_) {
        _.defaults = function (object) {
            if (!object) {
                return object;
            }
Severity: Major
Found in demos/vanillajs/bower_components/todomvc-common/base.js - About 3 hrs to fix

Function configure has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            configure: function (cfg) {
                //Make sure the baseUrl ends in a slash.
                if (cfg.baseUrl) {
                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
                        cfg.baseUrl += '/';
Severity: Major
Found in demos/requirejs/bower_components/requirejs/require.js - About 2 hrs to fix

Function updateRoute has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function updateRoute() {
      var next = parseRoute(),
          last = $route.current;

      if (next && last && next.$$route === last.$$route
Severity: Major
Found in demos/angularjs/bower_components/angular-route/angular-route.js - About 2 hrs to fix

File angular-route.js has 278 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.2.16
 * (c) 2010-2014 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Minor
Found in demos/angularjs/bower_components/angular-route/angular-route.js - About 2 hrs to fix
Severity
Category
Status
Source
Language