sebastian-software/core

View on GitHub

Showing 229 of 406 total issues

Avoid deeply nested control flow statements.
Open

      if (agent.indexOf("mobile/") != -1) {
        mobile = true;
      }
Severity: Major
Found in source/class/core/detect/Browser.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                if (match)
                {
                    name = match[2].toLowerCase();
                    version = parseFloat(match[3]);
                }
    Severity: Major
    Found in source/class/core/detect/System.js - About 45 mins to fix

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

              start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root)
      Severity: Minor
      Found in source/class/core/effect/Animate.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

            else if ((global.chrome || global.chromium) && (/opr\/([0-9.]+)/.exec(agent) || /(chrome)\/([0-9.]+)/.exec(agent)))
            {
              if (RegExp.$2)
              {
                name = "chrome";
        Severity: Major
        Found in source/class/core/detect/Browser.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                          if (callback) {
                                              callback.call(context, uri, false);
                                          }
          Severity: Major
          Found in source/class/core/io/StyleSheet.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if (version >= 7) {
                                    version = 6.1;
                                } else if (version >= 6) {
                                    version = 6.0;
                                } else {
            Severity: Major
            Found in source/class/core/detect/System.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if (match) {
                                      version = 5.0;
                                  }
              Severity: Major
              Found in source/class/core/detect/System.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                              for (var j=0, jl=lines.length; j<jl; j++) {
                                console.log("  " + lines[j])
                              }
                Severity: Major
                Found in source/class/core/testrunner/reporter/Console.js - About 45 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                                      if (!(symbol >= "0" && symbol <= "9" || symbol >= "a" && symbol <= "f" || symbol >= "A" && symbol <= "F")) {
                                        // Invalid Unicode escape sequence.
                                        abort();
                                      }
                  Severity: Major
                  Found in source/class/core/JSON.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                          if (self.__isDragging) {
                    
                            // Compute move distance
                            var moveX = currentTouchLeft - self.__lastTouchLeft;
                            var moveY = currentTouchTop - self.__lastTouchTop;
                    Severity: Major
                    Found in source/class/core/ui/Scroller.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                                      if (callback)
                                      {
                                          callback.call(context || global, uri, errornous, {
                                              node: img,
                                              width : img.naturalWidth || img.width || 0,
                      Severity: Major
                      Found in source/class/core/io/Image.js - About 40 mins to fix

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

                            var extendClass = function(clazz, construct, superClass, name, basename)
                        Severity: Minor
                        Found in source/class/core/Class.js - About 35 mins to fix

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

                              fadeOut : function(elem, to, reset, callback, context)
                          Severity: Minor
                          Found in source/class/core/bom/Transition.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 has has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  has : 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 add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

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

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

                                        fadeIn : function(elem, from, to, callback, context)
                                    Severity: Minor
                                    Found in source/class/core/bom/Transition.js - About 35 mins to fix

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

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

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

                                            var checkSignature = function(target, type, callback, context, capture)
                                        Severity: Minor
                                        Found in source/class/core/bom/PointerEvent.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language