neyric/wireit

View on GitHub

Showing 179 of 497 total issues

File xpath.js has 1661 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright 2005 Google Inc.
// All Rights Reserved
//
// An XPath parser and evaluator written in JavaScript. The
// implementation is complete except for functions handling
Severity: Major
Found in sandbox/grouping/examples/sawire/xml/xpath.js - About 4 days to fix

    File wireit-all-debug.js has 1408 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* This file is auto-generated by src/loader/scripts/meta_join.js */
    
    YUI().use(function(Y) {
       var CONFIG = {
          groups: {
    Severity: Major
    Found in build/wireit-all/wireit-all-debug.js - About 3 days to fix

      File wireit-all.js has 1408 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* This file is auto-generated by src/loader/scripts/meta_join.js */
      
      YUI().use(function(Y) {
         var CONFIG = {
            groups: {
      Severity: Major
      Found in build/wireit-all/wireit-all.js - About 3 days to fix

        Function execute has a Cognitive Complexity of 151 (exceeds 5 allowed). Consider refactoring.
        Open

           execute: function(moduleId,params) {
        
              var moduleBodyEl;
              try {
                 
        Severity: Minor
        Found in sandbox/grouping/examples/sawire/ExecutionFrame.js - About 3 days to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        File GroupUtils.js has 933 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        (function() {
        
            /**
            * Contains utility functions to do with groups (also one or two more general ones)
            * @class GroupUtils
        Severity: Major
        Found in sandbox/grouping/js/GroupUtils.js - About 2 days to fix

          File bpmn-2.0.js has 785 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          var bpmnLanguage = {
              
              // Set a unique name for the language
              languageName: "bpmn2.0",
          
          
          Severity: Major
          Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js - About 1 day to fix

            Function execute has 307 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

               execute: function(moduleId,params) {
            
                  var moduleBodyEl;
                  try {
                     
            Severity: Major
            Found in sandbox/grouping/examples/sawire/ExecutionFrame.js - About 1 day to fix

              Function evaluate has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
              Open

              StepExpr.prototype.evaluate = function(ctx) {
                var input = ctx.node;
                var nodelist = [];
                var skipNodeTest = false;
                
              Severity: Minor
              Found in sandbox/grouping/examples/sawire/xml/xpath.js - About 1 day to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function xsltProcessContext has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
              Open

              function xsltProcessContext(input, template, output) {
                var outputDocument = xmlOwnerDocument(output);
              
                var nodename = template.nodeName.split(/:/);
                if (nodename.length == 1 || nodename[0] != 'xsl') {
              Severity: Minor
              Found in sandbox/grouping/examples/sawire/xml/xslt.js - About 7 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function compare has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
              Open

              BinaryExpr.prototype.compare = function(ctx, cmp) {
                var v1 = this.expr1.evaluate(ctx);
                var v2 = this.expr2.evaluate(ctx);
              
                var ret;
              Severity: Minor
              Found in sandbox/grouping/examples/sawire/xml/xpath.js - About 7 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function xsltProcessContext has 187 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function xsltProcessContext(input, template, output) {
                var outputDocument = xmlOwnerDocument(output);
              
                var nodename = template.nodeName.split(/:/);
                if (nodename.length == 1 || nodename[0] != 'xsl') {
              Severity: Major
              Found in sandbox/grouping/examples/sawire/xml/xslt.js - About 7 hrs to fix

                File dom.js has 414 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                // Copyright 2005 Google Inc.
                // All Rights Reserved
                //
                // Author: Steffen Meschkat <mesch@google.com>
                //
                Severity: Minor
                Found in sandbox/grouping/examples/sawire/xml/dom.js - About 5 hrs to fix

                  Function xmlParse has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function xmlParse(xml) {
                    var regex_empty = /\/$/;
                  
                    var regex_tagname;
                    var regex_attribute;
                  Severity: Minor
                  Found in sandbox/grouping/examples/sawire/xml/dom.js - About 5 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function generateUI has 141 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      generateUI: function(map, changedCallback)
                      {
                          if (!Y.Lang.isValue(map))
                          map = Y.GroupUtils.getMap(this)
                          
                  Severity: Major
                  Found in sandbox/grouping/js/Group.js - About 5 hrs to fix

                    File Group.js has 397 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    (function() {
                       
                    /**
                     * Handles a Group
                     * @class Group
                    Severity: Minor
                    Found in sandbox/grouping/js/Group.js - About 5 hrs to fix

                      File xslt.js has 395 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // Copyright 2005 Google Inc.
                      // All Rights Reserved
                      //
                      //
                      // An XSL-T processor written in JavaScript. The implementation is NOT
                      Severity: Minor
                      Found in sandbox/grouping/examples/sawire/xml/xslt.js - About 5 hrs to fix

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

                            expand: function() 
                            {
                            //For each module add it to the layer
                            //For each wire wire up the new containers
                            //For each internal group add to layer groups, remap from serialised 
                        Severity: Major
                        Found in sandbox/grouping/js/GroupFormContainer.js - About 5 hrs to fix

                          File ExecutionFrame.js has 381 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /**
                           * An "ExecutionFrame" is the equivalent to the jsBox layer.
                           * It contains a set module instances and a set of wires linking them.
                           * @class ExecutionFrame
                           * @constructor
                          Severity: Minor
                          Found in sandbox/grouping/examples/sawire/ExecutionFrame.js - About 5 hrs to fix

                            Function generateTerminalMap has 117 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                generateTerminalMap: function(group, usedNames, containerMap, groupMap)
                                {
                                    var self = this;
                                    
                                    var mergeTerminalOverrides = function(terminalConfigs, overrides, usedNames, forceVisible, terminalMap)
                            Severity: Major
                            Found in sandbox/grouping/js/GroupUtils.js - About 4 hrs to fix

                              Function xpathReduce has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function xpathReduce(stack, ahead) {
                                var cand = null;
                              
                                if (stack.length > 0) {
                                  var top = stack[stack.length-1];
                              Severity: Minor
                              Found in sandbox/grouping/examples/sawire/xml/xpath.js - About 4 hrs to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Severity
                              Category
                              Status
                              Source
                              Language