constar/infor-you-mation

View on GitHub
app/bower_components/angular-sanitize/angular-sanitize.js

Summary

Maintainability
D
2 days
Test Coverage

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

function $SanitizeProvider() {
  var svgEnabled = false;

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

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

    /**
     * @license AngularJS v1.5.10
     * (c) 2010-2016 Google, Inc. http://angularjs.org
     * License: MIT
     */
    Severity: Minor
    Found in app/bower_components/angular-sanitize/angular-sanitize.js - About 3 hrs to fix

      Function htmlParserImpl has 50 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 app/bower_components/angular-sanitize/angular-sanitize.js - About 2 hrs 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 app/bower_components/angular-sanitize/angular-sanitize.js - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

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

            Avoid deeply nested control flow statements.
            Open

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

              There are no issues that match your filters.

              Category
              Status