betajs/mock-ajax-server

View on GitHub
assets/client.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function createTest has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        createTest : function(opts) {
            var name = [];
            name.push(opts.method.toLowerCase());
            name.push(opts.origin + " origin");
            if (opts.jsondata)
Severity: Major
Found in assets/client.js - About 2 hrs to fix

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

            loadByIframe : function(options, callback, context) {
                var iframe = document.createElement("iframe");
                if (options.visible) {
                    iframe.style.border = "none";
                    iframe.style.width = "1px";
    Severity: Minor
    Found in assets/client.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status