myems-admin/js/angular/angular-sanitize.js

Summary

Maintainability
D
2 days
Test Coverage

Function $SanitizeProvider has 294 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $SanitizeProvider() {
  var hasBeenInstantiated = false;
  var svgEnabled = false;

  this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
Severity: Major
Found in myems-admin/js/angular/angular-sanitize.js - About 1 day to fix

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

    /**
     * @license AngularJS v1.8.3
     * (c) 2010-2020 Google LLC. http://angularjs.org
     * License: MIT
     */
    Severity: Minor
    Found in myems-admin/js/angular/angular-sanitize.js - About 5 hrs to fix

      Function htmlParserImpl has 48 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function htmlParserImpl(html, handler) {
          if (html === null || html === undefined) {
            html = '';
          } else if (typeof html !== 'string') {
            html = '' + html;
      Severity: Minor
      Found in myems-admin/js/angular/angular-sanitize.js - About 1 hr to fix

        Function htmlSanitizeWriterImpl has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function htmlSanitizeWriterImpl(buf, uriValidator) {
            var ignoreCurrentElement = false;
            var out = bind(buf, buf.push);
            return {
              start: function(tag, attrs) {
        Severity: Minor
        Found in myems-admin/js/angular/angular-sanitize.js - About 1 hr to fix

          Function getInertBodyElement has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            var getInertBodyElement /* function(html: string): HTMLBodyElement */ = (function(window, document) {
              if (isDOMParserAvailable()) {
                return getInertBodyElement_DOMParser;
              }
          
          
          Severity: Minor
          Found in myems-admin/js/angular/angular-sanitize.js - About 1 hr to fix

            Avoid deeply nested control flow statements.
            Open

                        if (node === inertBodyElement) break;
            Severity: Major
            Found in myems-admin/js/angular/angular-sanitize.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if (node.nodeType === 1) {
                            handler.end(node.nodeName.toLowerCase());
                          }
              Severity: Major
              Found in myems-admin/js/angular/angular-sanitize.js - About 45 mins to fix

                There are no issues that match your filters.

                Category
                Status