shadowproject/shadow

View on GitHub

Showing 126 of 126 total issues

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

        addTriangle: function (x, y, w, h, r, invert) {
Severity: Minor
Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                if (code < 0x80) {
                  buffer8[i++] = code;
                } else if (code < 0x800) {
                  buffer8[i++] = 0xc0 | (code >> 6);
                  buffer8[i++] = 0x80 | (code & 0x3f);
    Severity: Major
    Found in src/qt/res/assets/plugins/md5/md5.js - About 45 mins to fix

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

          me.momentum = function (current, start, time, lowerMargin, wrapperSize, deceleration) {
      Severity: Minor
      Found in src/qt/res/assets/plugins/iscroll/iscroll.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (code < 0x80) {
                      blocks[i >> 2] |= code << SHIFT[i++ & 3];
                    } else if (code < 0x800) {
                      blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];
                      blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
        Severity: Major
        Found in src/qt/res/assets/plugins/md5/md5.js - About 45 mins to fix

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

                  rectangle: function(x, y, w, h, color, image) {
          Severity: Minor
          Found in src/qt/res/assets/plugins/identicon/identicon.js - About 45 mins to fix

            Consider simplifying this complex logical expression.
            Open

                        if (ft.options.sort === true) {
                            $(ft.table)
                                .unbind('.sorting')
                                .bind({
                                    'footable_initialized.sorting': function (e) {
            Severity: Major
            Found in src/qt/res/assets/plugins/footable/footable.sort.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          if (ft.options.filter.enabled === true) {
                              if ($(ft.table).data('filter') === false) return;
                              ft.timers.register('filter');
                              $(ft.table)
                                  .unbind('.filtering')
              Severity: Major
              Found in src/qt/res/assets/plugins/footable/footable.filter.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if ( !(/(SELECT|INPUT|TEXTAREA)/i).test(target.tagName) ) {
                            // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
                            // initMouseEvent is deprecated.
                            ev = document.createEvent(window.MouseEvent ? 'MouseEvents' : 'Event');
                            ev.initEvent('click', true, true);
                Severity: Major
                Found in src/qt/res/assets/plugins/iscroll/iscroll.js - About 40 mins to fix

                  Function createDetail has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                              createDetail: function (element, data, createGroupedDetail, separatorChar, classes) {
                  Severity: Minor
                  Found in src/qt/res/assets/plugins/footable/footable.js - About 35 mins to fix

                    Function scrollToElement has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        scrollToElement: function (el, time, offsetX, offsetY, easing) {
                    Severity: Minor
                    Found in src/qt/res/assets/plugins/iscroll/iscroll.js - About 35 mins to fix

                      Function addRhombus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              addRhombus: function (x, y, w, h, invert) {
                      Severity: Minor
                      Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 35 mins to fix

                        Function addRectangle has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                addRectangle: function (x, y, w, h, invert) {
                        Severity: Minor
                        Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 35 mins to fix

                          Function renderShape has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  function renderShape(colorIndex, shapes, index, rotationIndex, positions) {
                          Severity: Minor
                          Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 35 mins to fix

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

                                    if ( !this.options.disableTouch ) {
                                        utils.addEvent(this.indicator, 'touchstart', this);
                                        utils.addEvent(window, 'touchend', this);
                                    }
                            Severity: Minor
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 35 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1734..1737

                            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 47.

                            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

                                    if ( !this.options.disableMouse ) {
                                        utils.addEvent(this.indicator, 'mousedown', this);
                                        utils.addEvent(window, 'mouseup', this);
                                    }
                            Severity: Minor
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 35 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1726..1729

                            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 47.

                            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

                                    y = this.options.listenY ? Math.round(y / this.sizeRatioY) : this.scroller.y;
                            Severity: Minor
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 30 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2083..2083

                            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 45.

                            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

                                        y = this.options.listenY && Math.round(this.sizeRatioY * this.scroller.y) || 0;
                            Severity: Minor
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 30 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2016..2016

                            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 45.

                            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

                                    var x = this.options.listenX && Math.round(this.sizeRatioX * this.scroller.x) || 0,
                            Severity: Minor
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 30 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2017..2017

                            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 45.

                            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 6 locations. Consider refactoring.
                            Open

                                    if ( newY > 0 ) {
                                        newY = 0;
                                    } else if ( newY < this.maxScrollY ) {
                                        newY = this.maxScrollY;
                                    }
                            Severity: Major
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 5 other locations - About 30 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1186..1190
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1328..1332
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1334..1338
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2071..2075
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2077..2081

                            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 45.

                            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 6 locations. Consider refactoring.
                            Open

                                    if ( y > 0 ) {
                                        y = 0;
                                    } else if ( y < this.maxScrollY ) {
                                        y = this.maxScrollY;
                                    }
                            Severity: Major
                            Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 5 other locations - About 30 mins to fix
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1186..1190
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1192..1196
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1328..1332
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2071..2075
                            src/qt/res/assets/plugins/iscroll/iscroll.js on lines 2077..2081

                            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 45.

                            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