preston/bittorious

View on GitHub
lib/assets/bower_components/angular-growl-v2/build/angular-growl.js

Summary

Maintainability
D
1 day
Test Coverage

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

/**
 * angular-growl-v2 - v0.7.4 - 2015-06-17
 * http://janstevens.github.io/angular-growl-2
 * Copyright (c) 2015 Marco Rinck,Jan Stevens; Licensed MIT
 */
Severity: Minor
Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 5 hrs to fix

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

        function ($rootScope, $interpolate, $sce, $filter, $timeout, growlMessages) {
          var translate;
          growlMessages.onlyUnique = _onlyUniqueMessages;
          growlMessages.reverseOrder = _reverseOrder;
          try {
    Severity: Major
    Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 4 hrs to fix

      Function addMessage has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          this.addMessage = function (message) {
            var directive, messages, found, msgText;
            if (this.directives[message.referenceId]) {
              directive = this.directives[message.referenceId];
            } else {
      Severity: Major
      Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 2 hrs to fix

        Function controller has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function ($scope, $timeout, growl, growlMessages) {
                  $scope.referenceId = $scope.reference || 0;
                  growlMessages.initDirective($scope.referenceId, $scope.limitMessages);
                  $scope.growlMessages = growlMessages;
                  $scope.inlineMessage = angular.isDefined($scope.inline) ? $scope.inline : growl.inlineMessages();
        Severity: Major
        Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 2 hrs to fix

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

              function ($rootScope, $interpolate, $sce, $filter, $timeout, growlMessages) {
          Severity: Minor
          Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status