betajs/mock-ajax-server

View on GitHub

Showing 3 of 3 total issues

Function exports has 106 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (Config) {
    var logs = {};
    
    Config.ports.forEach(function (port) {
        var express = Express();
Severity: Major
Found in src/server_service.js - About 4 hrs to fix

    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
        Severity
        Category
        Status
        Source
        Language