constar/infor-you-mation

View on GitHub

Showing 19 of 36 total issues

Function $SanitizeProvider has 243 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $SanitizeProvider() {
  var svgEnabled = false;

  this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
    if (svgEnabled) {
Severity: Major
Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 1 day to fix

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

    function $RouteProvider() {
      isArray = angular.isArray;
      isObject = angular.isObject;
    
      function inherit(parent, extra) {
    Severity: Major
    Found in app/bower_components/angular-route/angular-route.js - About 1 day to fix

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

            function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
      
          /**
           * @ngdoc service
           * @name $route
      Severity: Major
      Found in app/bower_components/angular-route/angular-route.js - About 6 hrs to fix

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

        /**
         * @license AngularJS v1.5.10
         * (c) 2010-2016 Google, Inc. http://angularjs.org
         * License: MIT
         */
        Severity: Minor
        Found in app/bower_components/angular-route/angular-route.js - About 4 hrs to fix

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

          /**
           * @license AngularJS v1.5.10
           * (c) 2010-2016 Google, Inc. http://angularjs.org
           * License: MIT
           */
          Severity: Minor
          Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 3 hrs to fix

            Function ngViewFactory has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function ngViewFactory($route, $anchorScroll, $animate) {
              return {
                restrict: 'ECA',
                terminal: true,
                priority: 400,
            Severity: Major
            Found in app/bower_components/angular-route/angular-route.js - About 2 hrs to fix

              Function getTopicInfo has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function getTopicInfo(topicid, limit) {
                  var topicinfo = {'topicId': topicid}
                  return new Promise (function(resolve) {
                      var getNameSql = 'select name from topics where id = ?';
                      var getNameSql_Params = [topicid];
              Severity: Minor
              Found in libird_sql.js - About 2 hrs to fix

                Function htmlParserImpl has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function htmlParserImpl(html, handler) {
                    if (html === null || html === undefined) {
                      html = '';
                    } else if (typeof html !== 'string') {
                      html = '' + html;
                Severity: Minor
                Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 2 hrs to fix

                  Function link has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      link: function(scope, $element, attr, ctrl, $transclude) {
                          var currentScope,
                              currentElement,
                              previousLeaveAnimation,
                              autoScrollExp = attr.autoscroll,
                  Severity: Minor
                  Found in app/bower_components/angular-route/angular-route.js - About 1 hr to fix

                    Function htmlSanitizeWriterImpl has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function htmlSanitizeWriterImpl(buf, uriValidator) {
                        var ignoreCurrentElement = false;
                        var out = bind(buf, buf.push);
                        return {
                          start: function(tag, attrs) {
                    Severity: Minor
                    Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 1 hr to fix

                      Function commitRoute has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function commitRoute() {
                            var lastRoute = $route.current;
                            var nextRoute = preparedRoute;
                      
                            if (preparedRouteIsUpdateOnly) {
                      Severity: Minor
                      Found in app/bower_components/angular-route/angular-route.js - About 1 hr to fix

                        Function getTopicInfo has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function getTopicInfo(topicid, limit) {
                            var topicinfo = {'topicId': topicid}
                            return (new Promise(function(resolve) {
                                client.get("topic:" + topicid + ":name", function(err, reply) {
                                    topicinfo.topic = reply;
                        Severity: Minor
                        Found in libird.js - About 1 hr to fix

                          Function getTopicInfo has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function getTopicInfo(topicid, limit) {
                              var topicinfo = {'topicId': topicid}
                              return (new Promise(function(resolve) {
                                  client.get("topic:" + topicid + ":name", function(err, reply) {
                                      topicinfo.topic = reply;
                          Severity: Minor
                          Found in routes/index.js - About 1 hr to fix

                            Function $$CookieWriter has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function $$CookieWriter($document, $log, $browser) {
                              var cookiePath = $browser.baseHref();
                              var rawDocument = $document[0];
                            
                              function buildCookieString(name, value, options) {
                            Severity: Minor
                            Found in app/bower_components/angular-cookies/angular-cookies.js - About 1 hr to fix

                              Function $CookiesProvider has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                 provider('$cookies', [/** @this */function $CookiesProvider() {
                                  /**
                                   * @ngdoc property
                                   * @name $cookiesProvider#defaults
                                   * @description
                              Severity: Minor
                              Found in app/bower_components/angular-cookies/angular-cookies.js - About 1 hr to fix

                                Function $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                      function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
                                Severity: Major
                                Found in app/bower_components/angular-route/angular-route.js - About 50 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                              if (node === inertBodyElement) break;
                                  Severity: Major
                                  Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                              if (node.nodeType === 1) {
                                                  handler.end(node.nodeName.toLowerCase());
                                                }
                                    Severity: Major
                                    Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 45 mins to fix

                                      Function link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          link: function(scope, $element, attr, ctrl, $transclude) {
                                      Severity: Minor
                                      Found in app/bower_components/angular-route/angular-route.js - About 35 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language