myems-admin/js/angular/angular-loader.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function setupModuleLoader has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function setupModuleLoader(window) {

  var $injectorMinErr = minErr('$injector');
  var ngMinErr = minErr('ng');

Severity: Major
Found in myems-admin/js/angular/angular-loader.js - About 3 hrs to fix

    Function module has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        return function module(name, requires, configFn) {
    
          var info = {};
    
          var assertNotHasOwnProperty = function(name, context) {
    Severity: Major
    Found in myems-admin/js/angular/angular-loader.js - About 2 hrs to fix

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

      function minErr(module, ErrorConstructor) {
        ErrorConstructor = ErrorConstructor || Error;
      
        var url = 'https://errors.angularjs.org/1.8.3/';
        var regex = url.replace('.', '\\.') + '[\\s\\S]*';
      Severity: Minor
      Found in myems-admin/js/angular/angular-loader.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status