dlueth/qoopido.nucleus

View on GitHub

Showing 42 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

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                            pageY: {
                                match:      /^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop|wheel)/,
                                process:    function(event, originalEvent) {
                                    objectDefineProperty(event, 'pageY', {
                                        value: (function() {
            Severity: Major
            Found in src/hooks/event.js and 1 other location - About 4 hrs to fix
            src/hooks/event.js on lines 50..68

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 134.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                            pageX: {
                                match:      /^(?:mouse|pointer|contextmenu|click|dblclick|drag|drop|wheel)/,
                                process:    function(event, originalEvent) {
                                    objectDefineProperty(event, 'pageX', {
                                        value:      (function() {
            Severity: Major
            Found in src/hooks/event.js and 1 other location - About 4 hrs to fix
            src/hooks/event.js on lines 69..87

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 134.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            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

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                  gulp.task(id + ':minor', function() {
                      return gulp.src(settings.watch)
                          .pipe(plugins.bump({ type: 'minor' }))
                          .pipe(plugins.chmod(config.permissions))
                          .pipe(gulp.dest('./'))
                  Severity: Major
                  Found in gulp/tasks/bump.js and 2 other locations - About 3 hrs to fix
                  gulp/tasks/bump.js on lines 7..13
                  gulp/tasks/bump.js on lines 23..29

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 109.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                  gulp.task(id + ':patch', function() {
                      return gulp.src(settings.watch)
                          .pipe(plugins.bump({ type: 'patch' }))
                          .pipe(plugins.chmod(config.permissions))
                          .pipe(gulp.dest('./'))
                  Severity: Major
                  Found in gulp/tasks/bump.js and 2 other locations - About 3 hrs to fix
                  gulp/tasks/bump.js on lines 15..21
                  gulp/tasks/bump.js on lines 23..29

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 109.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                  gulp.task(id + ':major', function() {
                      return gulp.src(settings.watch)
                          .pipe(plugins.bump({ type: 'major' }))
                          .pipe(plugins.chmod(config.permissions))
                          .pipe(gulp.dest('./'))
                  Severity: Major
                  Found in gulp/tasks/bump.js and 2 other locations - About 3 hrs to fix
                  gulp/tasks/bump.js on lines 7..13
                  gulp/tasks/bump.js on lines 15..21

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 109.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  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

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        getHeight: function(includeMargin) {
                                            var node   = this.node,
                                                height = node.offsetHeight,
                                                style;
                            
                            
                            Severity: Major
                            Found in src/dom/element.js and 1 other location - About 2 hrs to fix
                            src/dom/element.js on lines 237..249

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 82.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        getWidth: function(includeMargin) {
                                            var node  = this.node,
                                                width = node.offsetWidth,
                                                style;
                            
                            
                            Severity: Major
                            Found in src/dom/element.js and 1 other location - About 2 hrs to fix
                            src/dom/element.js on lines 250..262

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 82.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Severity
                            Category
                            Status
                            Source
                            Language