shadowproject/shadow

View on GitHub

Showing 126 of 126 total issues

File iscroll.js has 1656 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
(function (window, document, Math) {
var rAF = window.requestAnimationFrame    ||
    window.webkitRequestAnimationFrame    ||
    window.mozRequestAnimationFrame        ||
Severity: Major
Found in src/qt/res/assets/plugins/iscroll/iscroll.js - About 4 days to fix

    Function Footable has 435 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function Footable(t, o, id) {
            ///<summary>Inits a new instance of the plugin.</summary>
            ///<param name="t">The main table element to apply this plugin to.</param>
            ///<param name="o">The options supplied to the plugin. Check the defaults object to see all available options.</param>
            ///<param name="id">The id to assign to this instance of the plugin.</param>
    Severity: Major
    Found in src/qt/res/assets/plugins/footable/footable.js - About 2 days to fix

      File footable.js has 644 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * FooTable - Awesome Responsive Tables
       * Version : 2.0.3
       * http://fooplugins.com/plugins/footable-jquery/
       *
      Severity: Major
      Found in src/qt/res/assets/plugins/footable/footable.js - About 1 day to fix

        Function utils has 213 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var utils = (function () {
            var me = {};
        
            var _elementStyle = document.createElement('div').style;
            var _vendor = (function () {
        Severity: Major
        Found in src/qt/res/assets/plugins/iscroll/iscroll.js - About 1 day to fix

          Function Paginate has 185 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function Paginate() {
                  var p = this;
                  p.name = 'Footable Paginate';
          
                  p.init = function (ft) {
          Severity: Major
          Found in src/qt/res/assets/plugins/footable/footable.paginate.js - About 7 hrs to fix

            File jdenticon-1.3.2.js has 449 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * Jdenticon 1.3.2
             * http://jdenticon.com
             *  
             * Built: 2015-10-10T11:55:57.451Z
            Severity: Minor
            Found in src/qt/res/assets/plugins/jdenticon/jdenticon-1.3.2.js - About 6 hrs to fix

              Function hash has 164 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                Md5.prototype.hash = function () {
                  var a, b, c, d, bc, da, blocks = this.blocks;
              
                  if (this.first) {
                    a = blocks[0] - 680876937;
              Severity: Major
              Found in src/qt/res/assets/plugins/md5/md5.js - About 6 hrs to fix

                File md5.js has 411 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * [js-md5]{@link https://github.com/emn178/js-md5}
                 *
                 * @namespace md5
                 * @version 0.4.1
                Severity: Minor
                Found in src/qt/res/assets/plugins/md5/md5.js - About 5 hrs to fix

                  Function Sort has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function Sort() {
                          var p = this;
                          p.name = 'Footable Sortable';
                          p.init = function (ft) {
                              p.footable = ft;
                  Severity: Major
                  Found in src/qt/res/assets/plugins/footable/footable.sort.js - About 5 hrs to fix

                    Function PNGlib has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        window.PNGlib = function(width,height,depth) {
                    
                            this.width   = width;
                            this.height  = height;
                            this.depth   = depth;
                    Severity: Major
                    Found in src/qt/res/assets/plugins/pnglib/pnglib.js - About 5 hrs to fix

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

                            blocks[16] = blocks[1] = blocks[2] = blocks[3] =
                            blocks[4] = blocks[5] = blocks[6] = blocks[7] =
                            blocks[8] = blocks[9] = blocks[10] = blocks[11] =
                            blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
                      Severity: Major
                      Found in src/qt/res/assets/plugins/md5/md5.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/md5/md5.js on lines 201..204

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

                      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

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

                              blocks[16] = blocks[1] = blocks[2] = blocks[3] =
                              blocks[4] = blocks[5] = blocks[6] = blocks[7] =
                              blocks[8] = blocks[9] = blocks[10] = blocks[11] =
                              blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
                      Severity: Major
                      Found in src/qt/res/assets/plugins/md5/md5.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/md5/md5.js on lines 285..288

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

                      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.resize ) {
                                      this.indicatorWidth = Math.max(Math.round(this.wrapperWidth * this.wrapperWidth / (this.scroller.scrollerWidth || this.wrapperWidth || 1)), 8);
                                      this.indicatorStyle.width = this.indicatorWidth + 'px';
                                  } else {
                                      this.indicatorWidth = this.indicator.clientWidth;
                      Severity: Major
                      Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1991..1996

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

                      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.resize ) {
                                      this.indicatorHeight = Math.max(Math.round(this.wrapperHeight * this.wrapperHeight / (this.scroller.scrollerHeight || this.wrapperHeight || 1)), 8);
                                      this.indicatorStyle.height = this.indicatorHeight + 'px';
                                  } else {
                                      this.indicatorHeight = this.indicator.clientHeight;
                      Severity: Major
                      Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1969..1974

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

                      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.scrollY ) {
                                      indicator = {
                                          el: createDefaultScrollbar('v', interactive, this.options.scrollbars),
                                          interactive: interactive,
                                          defaultScrollbars: true,
                      Severity: Major
                      Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1017..1031

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

                      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.scrollX ) {
                                      indicator = {
                                          el: createDefaultScrollbar('h', interactive, this.options.scrollbars),
                                          interactive: interactive,
                                          defaultScrollbars: true,
                      Severity: Major
                      Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1000..1014

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

                      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.scroller.hasHorizontalScroll && this.scroller.hasVerticalScroll ) {
                                  utils.addClass(this.wrapper, 'iScrollBothScrollbars');
                                  utils.removeClass(this.wrapper, 'iScrollLoneScrollbar');
                      
                                  if ( this.options.defaultScrollbars && this.options.customStyle ) {
                      Severity: Major
                      Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1952..1963

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

                      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

                              } else {
                                  utils.removeClass(this.wrapper, 'iScrollBothScrollbars');
                                  utils.addClass(this.wrapper, 'iScrollLoneScrollbar');
                      
                                  if ( this.options.defaultScrollbars && this.options.customStyle ) {
                      Severity: Major
                      Found in src/qt/res/assets/plugins/iscroll/iscroll.js and 1 other location - About 4 hrs to fix
                      src/qt/res/assets/plugins/iscroll/iscroll.js on lines 1941..1952

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

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

                          function Filter() {
                              var p = this;
                              p.name = 'Footable Filter';
                              p.init = function (ft) {
                                  p.footable = ft;
                      Severity: Major
                      Found in src/qt/res/assets/plugins/footable/footable.filter.js - About 4 hrs to fix

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

                        elif cmd == "sendtoaddress":
                            try:
                                to = raw_input("To (in format address1:amount1,address2:amount2,...): ")
                                amt = raw_input("Amount:")
                                comment = raw_input("Comment (optional): ")
                        Severity: Major
                        Found in contrib/bitrpc/bitrpc.py and 1 other location - About 3 hrs to fix
                        contrib/bitrpc/bitrpc.py on lines 238..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 71.

                        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