neyric/wireit

View on GitHub

Showing 497 of 497 total issues

Function _onDragEditStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

   _onDragEditStart: function (ev) {
      // save the position
      this._editwireX = ev.pageX;
      this._editwireY = ev.pageY;
      
Severity: Minor
Found in src/terminal-dragedit/js/terminal-dragedit.js - About 1 hr to fix

    Function Sql has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    SyntaxHighlighter.brushes.Sql = function()
    {
        var funcs    =    'abs avg case cast coalesce convert count current_timestamp ' +
                        'current_user day isnull left lower month nullif replace right ' +
                        'session_user space substring sum system_user upper user year';
    Severity: Minor
    Found in sandbox/res/SyntaxHighlighter/shBrushSql.js - About 1 hr to fix

      Function generateExternal has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              var generateExternal = function(ftMap)
              {
                  for (var cI in ftMap)
                  {
                  var c = ftMap[cI];
      Severity: Minor
      Found in sandbox/grouping/js/GroupUtils.js - About 1 hr to fix

        Function xpathSort has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function xpathSort(input, sort) {
          if (sort.length == 0) {
            return;
          }
        
        
        Severity: Minor
        Found in sandbox/grouping/examples/sawire/xml/xpath.js - About 1 hr to fix

          Function _onDragEditStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

             _onDragEditStart: function (ev) {
                // save the position
                this._editwireX = ev.pageX;
                this._editwireY = ev.pageY;
                
          Severity: Minor
          Found in build/wireit-all/wireit-all.js - About 1 hr to fix

            Function _onDragEditStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

               _onDragEditStart: function (ev) {
                  // save the position
                  this._editwireX = ev.pageX;
                  this._editwireY = ev.pageY;
                  
            Severity: Minor
            Found in build/terminal-dragedit/terminal-dragedit.js - About 1 hr to fix

              Function _onDragEditStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                 _onDragEditStart: function (ev) {
                    // save the position
                    this._editwireX = ev.pageX;
                    this._editwireY = ev.pageY;
                    
              Severity: Minor
              Found in build/wireit-all/wireit-all-debug.js - About 1 hr to fix

                Function _onDragEditStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                   _onDragEditStart: function (ev) {
                      // save the position
                      this._editwireX = ev.pageX;
                      this._editwireY = ev.pageY;
                      
                Severity: Minor
                Found in build/terminal-dragedit/terminal-dragedit-debug.js - About 1 hr to fix

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

                      case '*':
                        ret = new NumberValue(this.expr1.evaluate(ctx).numberValue() *
                                              this.expr2.evaluate(ctx).numberValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 4 other locations - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1340..1343
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1345..1348
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1355..1358
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1360..1363

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

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

                      case '+':
                        ret = new NumberValue(this.expr1.evaluate(ctx).numberValue() +
                                              this.expr2.evaluate(ctx).numberValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 4 other locations - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1345..1348
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1350..1353
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1355..1358
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1360..1363

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

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

                      case 'mod':
                        ret = new NumberValue(this.expr1.evaluate(ctx).numberValue() %
                                              this.expr2.evaluate(ctx).numberValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 4 other locations - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1340..1343
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1345..1348
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1350..1353
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1360..1363

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

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

                      case '-':
                        ret = new NumberValue(this.expr1.evaluate(ctx).numberValue() -
                                              this.expr2.evaluate(ctx).numberValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 4 other locations - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1340..1343
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1350..1353
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1355..1358
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1360..1363

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

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

                      case 'div':
                        ret = new NumberValue(this.expr1.evaluate(ctx).numberValue() /
                                              this.expr2.evaluate(ctx).numberValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 4 other locations - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1340..1343
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1345..1348
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1350..1353
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1355..1358

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

                  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

                                {"name": "in", "direction": [0,-1], "offsetPosition": {"left": 82, "top": -15 }, "ddConfig": {
                                  "type": "input",
                                  "allowedTypes": ["output"]
                               },
                               "nMaxWires": 1
                  Severity: Major
                  Found in sandbox/composable-editor/composable-editor.js and 1 other location - About 1 hr to fix
                  sandbox/grouping/examples/sawire/modules.js on lines 31..36

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

                  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

                      case 'and':
                        ret = new BooleanValue(this.expr1.evaluate(ctx).booleanValue() &&
                                               this.expr2.evaluate(ctx).booleanValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 1 other location - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1330..1333

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

                  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

                           {"name": "in", "direction": [0,-1], "offsetPosition": {"left": 82, "top": -15 }, "ddConfig": {
                                "type": "input",
                                "allowedTypes": ["output"]
                             },
                             "nMaxWires": 1
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/modules.js and 1 other location - About 1 hr to fix
                  sandbox/composable-editor/composable-editor.js on lines 50..55

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

                  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

                      case 'or':
                        ret = new BooleanValue(this.expr1.evaluate(ctx).booleanValue() ||
                                               this.expr2.evaluate(ctx).booleanValue());
                        break;
                  Severity: Major
                  Found in sandbox/grouping/examples/sawire/xml/xpath.js and 1 other location - About 1 hr to fix
                  sandbox/grouping/examples/sawire/xml/xpath.js on lines 1335..1338

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

                  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 addRemapInput has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          var addRemapInput = function(name, moduleId, showOn, showCancel, defaultVisible, defaultName, visibleReadOnly, showSide, defaultSide)
                  Severity: Major
                  Found in sandbox/grouping/js/Group.js - About 1 hr to fix

                    Function insertBefore has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    XNode.prototype.insertBefore = function(newNode, oldNode) {
                      if (oldNode == newNode) {
                        return;
                      }
                    
                    
                    Severity: Minor
                    Found in sandbox/grouping/examples/sawire/xml/dom.js - About 1 hr to fix

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

                                 "terminals": [
                                     {"name": "out", "direction": [0,1], "offsetPosition": {"left": 86, "bottom": -15}, "ddConfig": {
                                      "type": "output",
                                      "allowedTypes": ["input"]
                                   }
                      Severity: Major
                      Found in sandbox/composable-editor/composable-editor.js and 3 other locations - About 1 hr to fix
                      sandbox/grouping/examples/sawire/modules.js on lines 108..121
                      sandbox/grouping/examples/sawire/modules.js on lines 152..165
                      sandbox/grouping/examples/sawire/modules.js on lines 186..199

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

                      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