bsalex/angular-loading-overlay

View on GitHub
dist/angular-loading-overlay.js

Summary

Maintainability
C
1 day
Test Coverage

Function BsLoadingOverlayDirective has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var BsLoadingOverlayDirective = (function () {
        function BsLoadingOverlayDirective($compile, $rootScope, $templateRequest, $q, $timeout, bsLoadingOverlayService) {
            var _this = this;
            this.$compile = $compile;
            this.$rootScope = $rootScope;
Severity: Major
Found in dist/angular-loading-overlay.js - About 2 hrs to fix

    Function BsLoadingOverlayService has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var BsLoadingOverlayService = (function () {
            function BsLoadingOverlayService($rootScope, $q) {
                var _this = this;
                this.$rootScope = $rootScope;
                this.$q = $q;
    Severity: Minor
    Found in dist/angular-loading-overlay.js - About 1 hr to fix

      Function BsLoadingOverlayInstance has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var BsLoadingOverlayInstance = (function () {
              function BsLoadingOverlayInstance(referenceId, delay, activeClass, $element, overlayElement, $timeout, $q) {
                  this.referenceId = referenceId;
                  this.delay = delay;
                  this.activeClass = activeClass;
      Severity: Minor
      Found in dist/angular-loading-overlay.js - About 1 hr to fix

        Function BsLoadingOverlayDirective has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function BsLoadingOverlayDirective($compile, $rootScope, $templateRequest, $q, $timeout, bsLoadingOverlayService) {
                    var _this = this;
                    this.$compile = $compile;
                    this.$rootScope = $rootScope;
                    this.$templateRequest = $templateRequest;
        Severity: Minor
        Found in dist/angular-loading-overlay.js - About 1 hr to fix

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

                      this.link = function (scope, $element, $attributes) {
                          var templatePromise;
                          var overlayElementScope;
                          var globalConfig = _this.bsLoadingOverlayService.getGlobalConfig();
                          var templateUrl = $attributes.bsLoadingOverlayTemplateUrl || globalConfig.templateUrl;
          Severity: Minor
          Found in dist/angular-loading-overlay.js - About 1 hr to fix

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

                    function BsLoadingOverlayInstance(referenceId, delay, activeClass, $element, overlayElement, $timeout, $q) {
            Severity: Major
            Found in dist/angular-loading-overlay.js - About 50 mins to fix

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

                      function BsLoadingOverlayDirective($compile, $rootScope, $templateRequest, $q, $timeout, bsLoadingOverlayService) {
              Severity: Minor
              Found in dist/angular-loading-overlay.js - About 45 mins to fix

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

                    exports.BsLoadingOverlayDirectiveFactory = function ($compile, $rootScope, $templateRequest, $q, $timeout, bsLoadingOverlayService) { return (new BsLoadingOverlayDirective($compile, $rootScope, $templateRequest, $q, $timeout, bsLoadingOverlayService)); };
                Severity: Minor
                Found in dist/angular-loading-overlay.js - About 45 mins to fix

                  There are no issues that match your filters.

                  Category
                  Status