dlueth/qoopido.nucleus

View on GitHub
src/transport/xhr.js

Summary

Maintainability
C
1 day
Test Coverage

Function definition has 129 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function definition(Weakmap, Pledge, isObject, iterate, Url, functionMerge) {
        var XDR     = 'XDomainRequest' in global &&  global.XDomainRequest || XHR,
            storage = new Weakmap();

        function flatten(object, prefix, items) {
Severity: Major
Found in src/transport/xhr.js - About 5 hrs to fix

    Function request has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function request(method) {
                var properties      = storage.get(this),
                    isString        = typeof properties.data === 'string',
                    settings        = properties.settings,
                    url             = properties.url,
    Severity: Major
    Found in src/transport/xhr.js - About 2 hrs to fix

      Function definition has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function definition(Weakmap, Pledge, isObject, iterate, Url, functionMerge) {
      Severity: Minor
      Found in src/transport/xhr.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status