alexcrack/angular-ui-notification

View on GitHub

Showing 5 of 5 total issues

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

  this.$get = function ($timeout, $http, $compile, $templateCache, $rootScope, $injector, $sce, $q, $window) {
    var options = this.options;

    var startTop = options.startTop;
    var startRight = options.startRight;
Severity: Major
Found in src/angular-ui-notification.js - About 7 hrs to fix

    Function notify has 154 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var notify = function (args, t) {
          var deferred = $q.defer();
    
          if (typeof args !== 'object' || args === null) {
            args = {message: args};
    Severity: Major
    Found in src/angular-ui-notification.js - About 6 hrs to fix

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

            function processNotificationTemplate(template) {
      
              var scope = args.scope.$new();
              scope.message = $sce.trustAsHtml(args.message);
              scope.title = $sce.trustAsHtml(args.title);
      Severity: Major
      Found in src/angular-ui-notification.js - About 4 hrs to fix

        Function reposite has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var reposite = function () {
                  var j = 0;
                  var k = 0;
                  var lastTop = startTop;
                  var lastRight = startRight;
        Severity: Minor
        Found in src/angular-ui-notification.js - About 1 hr to fix

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

            this.$get = function ($timeout, $http, $compile, $templateCache, $rootScope, $injector, $sce, $q, $window) {
          Severity: Major
          Found in src/angular-ui-notification.js - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language