betajs/betajs-debug

View on GitHub

Showing 8 of 18 total issues

Function hookTimers has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        hookTimers: function () {
            var handleCounter = 0;
            var handleConvert = function (handle) {
                if (typeof handle === "number")
                    return handle;
Severity: Major
Found in src/debug/timers.js - About 2 hrs to fix

    Function createProfile has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            createProfile: function () {
                return {
                    
                    _entered: 0,
                    _suspended: 0,
    Severity: Minor
    Found in src/debug/profiler.js - About 1 hr to fix

      Function monitorInstances has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              monitorInstances: function (baseClass, filter) {
                  var instances = {};
                  var logchange = function (cls, delta, cid) {
                      var current = cls;
                      while (current) {
      Severity: Minor
      Found in src/debug/instances.js - About 1 hr to fix

        Function monitorInstances has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                monitorInstances: function (baseClass, filter) {
                    var classes = {};
                    var beginCallMethod = function (method, instance) {
                        var methods = classes[instance.cls.classname].methods;
                        methods[method] = methods[method] || {
        Severity: Minor
        Found in src/debug/methods.js - About 1 hr to fix

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

                      var constructorHook = Hooks.hookMethod("constructor", baseClass.prototype, undefined, function (method, ctx, args, result, exc, instance) {
          Severity: Minor
          Found in src/debug/instances.js - About 45 mins to fix

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

                    hookPrototypeMethod: function (method, cls, beginCallback, endCallback, callbackContext) {
            Severity: Minor
            Found in src/debug/hooks.js - About 35 mins to fix

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

                      hookMethod: function (method, context, beginCallback, endCallback, callbackContext) {
              Severity: Minor
              Found in src/debug/hooks.js - About 35 mins to fix

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

                        hookMethodsArray: function (methods, context, beginCallback, endCallback, callbackContext) {
                Severity: Minor
                Found in src/debug/hooks.js - About 35 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language