dlueth/qoopido.nucleus

View on GitHub

Showing 23 of 42 total issues

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

    function definition(isObject, isInstanceOf, isTypeOf, generateUuid, iterate, Event, hooksCss, supportMethod) {
        var //shortcuts
            documentBody             = document.body || document.getElementsByTagName('body')[0],
            arrayPrototypeConcat     = Array.prototype.concat,
            arrayPrototypeSlice      = Array.prototype.slice,
Severity: Major
Found in src/dom/element.js - About 2 days to fix

    File element.js has 523 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * @use /demand/validator/isObject
     * @use /demand/validator/isInstanceOf
     * @use /demand/validator/isTypeOf
     * @use /demand/function/uuid
    Severity: Major
    Found in src/dom/element.js - About 1 day to fix

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

          function definition(isTypeOf, isInstanceOf, DomElement) {
              var arrayPrototypeSlice  = Array.prototype.slice,
                  objectDefineProperty = Object.defineProperty;
      
              function resolveElements(elements) {
      Severity: Major
      Found in src/dom/collection.js - About 7 hrs to fix

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

            function definition(abstractUuid, iterate) {
                var objectDefineProperties    = Object.defineProperties,
                    storage                   = {},
                    regexMatchLeadingSlash    = /^\//,
                    regexMatchParameter       = /[?&]?([^=]+)=([^&]*)/g,
        Severity: Major
        Found in src/url.js - About 6 hrs to fix

          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 definition has 120 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function definition(Weakmap, iterate) {
                    var regexMatchExcludedMethods      = /^(_|((get|has|is)([A-Z]|$))|(on|one|off|emit|constructor)$)/,
                        objectDefineProperty           = Object.defineProperty,
                        objectGetOwnPropertyNames      = Object.getOwnPropertyNames,
                        objectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,
            Severity: Major
            Found in src/emitter.js - About 4 hrs to fix

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

                  function definition(iterate) {
                      var objectDefineProperty   = Object.defineProperty,
                          objectDefineProperties = Object.defineProperties,
                          storage = {
                              general: {
              Severity: Major
              Found in src/hooks/event.js - About 4 hrs to fix

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

                    function definition(Weakmap, DomElement, functionMerge, functionDebounce) {
                        var documentElement  = document.documentElement,
                            window           = new DomElement(global),
                            viewport         = {},
                            storage          = new Weakmap(),
                Severity: Major
                Found in src/dom/element/appear.js - About 3 hrs to fix

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

                      function definition(Weakmap, Emitter, functionMerge) {
                          var storage = new Weakmap();
                  
                          function getStorageProperty(context, property) {
                              var properties;
                  Severity: Major
                  Found in src/component/iterator.js - About 3 hrs to fix

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

                        function definition(iterate) {
                            var id      = 'polyfill/window/matchmedia',
                                storage = {},
                                count = 0, style;
                    
                    
                    Severity: Major
                    Found in src/polyfill/window/matchmedia.js - About 3 hrs to fix

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

                          function definition(abstractUuid, Pledge, isInstanceOf, defer, supportMethod) {
                              var ArrayBuffer  = 'ArrayBuffer' in global ? ArrayBuffer : null,
                                  NativeWorker = supportMethod('Worker'),
                                  NativeUrl    = supportMethod('URL'),
                                  NativeBlob   = supportMethod('Blob'),
                      Severity: Major
                      Found in src/task.js - About 2 hrs to fix

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

                            function definition(hooksEvent) {
                                function getTarget(event) {
                                    var target = event.target || event.srcElement || document;
                        
                                    return target.nodeType === 3 ? target.parentNode : target;
                        Severity: Major
                        Found in src/dom/event.js - About 2 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 43 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function definition(WeakMap, DomElement) {
                                    var weakmap               = new WeakMap(),
                                        supportsPointerEvents = document.documentMode < 11 ? false : 'pointerEvents' in document.createElement('iframe').style,
                                        styles                = {
                                            pointerEvents: 'none',
                            Severity: Minor
                            Found in src/dom/element/resize.js - About 1 hr to fix

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

                                  function definition(isObject, functionPropertyUnify, functionStringUcfirst, supportPrefix) {
                                      var prefixes = supportPrefix(),
                                          storage  = {};
                              
                                      return function supportProperty(property) {
                              Severity: Minor
                              Found in src/support/property.js - About 1 hr to fix

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

                                    function definition(getCssProperty) {
                                        var storage = {
                                                general: {
                                                    get: function(element, property) {
                                                        return getComputedStyle(element, null).getPropertyValue(property[0]);
                                Severity: Minor
                                Found in src/hooks/css.js - About 1 hr to fix

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

                                          return function supportProperty(property) {
                                              var element  = isObject(arguments[1]) ? arguments[1] : null,
                                                  getValue = !!arguments[element ? 2 : 1],
                                                  stored   = null,
                                                  pointer, type, candidates, candidate, uProperty, i = 0;
                                  Severity: Minor
                                  Found in src/support/property.js - About 1 hr to fix

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

                                        function definition(unify, ucfirst, prefix) {
                                            var prefixes            = prefix(),
                                                styles              = document.createElement('div').style,
                                                regexMatchUppercase = /([A-Z])/g,
                                                storage             = {};
                                    Severity: Minor
                                    Found in src/support/css/property.js - About 1 hr to fix

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

                                          function definition(isObject, isInstanceOf, isTypeOf, generateUuid, iterate, Event, hooksCss, supportMethod) {
                                      Severity: Major
                                      Found in src/dom/element.js - About 1 hr to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if(listener === fn) {
                                                                            pointer[event].splice(j, 1);
                                        
                                                                            j--;
                                                                        }
                                        Severity: Major
                                        Found in src/emitter.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language