sebastian-software/core

View on GitHub

Showing 229 of 406 total issues

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

    remove : function(target, type, callback, context, capture)
Severity: Minor
Found in source/class/core/bom/PointerEvent.js - About 35 mins to fix

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

            var set = function(element, x, y, z, zoom)
    Severity: Minor
    Found in source/class/core/bom/Position.js - About 35 mins to fix

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

          remove : function(target, type, callback, context, capture)
      Severity: Minor
      Found in source/class/core/bom/TapEvent.js - About 35 mins to fix

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

        def test(target="source", tool="phantom", browsers=None, main="test.Main", kernel="test.Kernel"):
        Severity: Minor
        Found in jasylibrary.py - About 35 mins to fix

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

                  preloadSection: function(section, recursive, callback, context, random)
          Severity: Minor
          Found in source/class/core/io/Asset.js - About 35 mins to fix

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

                    load : function(uris, callback, context, nocache, type)
            Severity: Minor
            Found in source/class/core/io/Queue.js - About 35 mins to fix

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

                      load : function(uri, callback, context, nocache, timeout)
              Severity: Minor
              Found in source/class/core/io/Text.js - About 35 mins to fix

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

                  construct : function(title, func, suite, total, timeout)
                Severity: Minor
                Found in source/class/core/testrunner/Test.js - About 35 mins to fix

                  Function createChild has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      createChild : function(name, construct, varargs)
                      {
                        var args = arguments;
                  
                        if (args.length > 2)
                  Severity: Minor
                  Found in source/class/core/presenter/Abstract.js - About 35 mins 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 forEachView has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      forEachView : function(callback, context, all)
                      {
                        var db = this.__views;
                        var view;
                  
                  
                  Severity: Minor
                  Found in source/class/core/presenter/Abstract.js - About 35 mins 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 createModel has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      createModel : function(name, construct, varargs)
                      {
                        var args = arguments;
                  
                        if (args.length > 2)
                  Severity: Minor
                  Found in source/class/core/presenter/Abstract.js - About 35 mins 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 testFinished has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      testFinished : function(test)
                      {
                        var li = document.getElementById("test-" + test.getId());
                        core.bom.ClassName.remove(li, "running");
                  
                  
                  Severity: Minor
                  Found in source/class/core/testrunner/reporter/Html.js - About 35 mins 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 run has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      run : function(allDoneCallback, testStartedCallback, testFinishedCallback, randomize)
                      {
                        var queue = this.__tests;
                        var length = queue.length;
                  
                  
                  Severity: Minor
                  Found in source/class/core/testrunner/Suite.js - About 35 mins 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 buildHash has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                          buildHash: function(type, file, item) {
                  
                              type = type || null;
                              file = file || null;
                              item = item || null;
                  Severity: Minor
                  Found in source/class/core/apibrowser/Browser.js - About 35 mins 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

                  Avoid too many return statements within this function.
                  Open

                                          return context[currentGetter](name);
                  Severity: Major
                  Found in source/class/core/property/Multi.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        return data[propertyId+currentPriority];
                    Severity: Major
                    Found in source/class/core/property/Multi.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                    return false;
                      Severity: Major
                      Found in source/class/core/JSON.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return "jump";
                        Severity: Major
                        Found in source/class/core/util/HashPath.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return "equal";
                          Severity: Major
                          Found in source/class/core/util/HashPath.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return "param";
                            Severity: Major
                            Found in source/class/core/util/HashPath.js - About 30 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language