Foxandxss/angular-toastr

View on GitHub
src/directives/toast/toast.directive.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function toast has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function toast($injector, $interval, toastrConfig, toastr) {
    return {
      templateUrl: function() {
        return toastrConfig.templates.toast;
      },
Severity: Major
Found in src/directives/toast/toast.directive.js - About 3 hrs to fix

    Function toastLinkFunction has 68 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function toastLinkFunction(scope, element, attrs, toastCtrl) {
          var timeout;
    
          scope.toastClass = scope.options.toastClass;
          scope.titleClass = scope.options.titleClass;
    Severity: Major
    Found in src/directives/toast/toast.directive.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status