jonnyhaynes/inline-svg

View on GitHub

Showing 2 of 4 total issues

Function inliner has 100 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var inliner = function (cb) {
    var svgs = getAll();
    var callback = after(svgs.length, cb);

    Array.prototype.forEach.call(svgs, function (svg, i) {
Severity: Major
Found in src/inlineSVG.js - About 4 hrs to fix

    Function onload has 86 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          request.onload = function () {
            if (request.status >= 200 && request.status < 400) {
              // Setup a parser to convert the response to text/xml in order for it
              // to be manipulated and changed
              var parser = new DOMParser(),
    Severity: Major
    Found in src/inlineSVG.js - About 3 hrs to fix
      Severity
      Category
      Status
      Source
      Language