sebastian-software/core

View on GitHub

Showing 406 of 406 total issues

Avoid deeply nested control flow statements.
Open

            if (next) {
              parent.insertBefore(child, next);
            } else {
              parent.appendChild(child);
            }
Severity: Major
Found in source/class/core/dom/Mutation.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

            else if (agent.indexOf("webOS") != -1)
            {
                name = "webos";
                match = /webOS\/([\.0-9]+)/.exec(agent);
                if (match) {
    Severity: Major
    Found in source/class/core/detect/System.js - About 45 mins to fix

      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

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

                                              if (key.substring(0,2) == "__") {
                                                  throw new Error("Included class " + includedClass.className + " overwrites private member " + key + " of other included class " + allIncludeMembers[key].className + " in class " + name);
                                              }
                      Severity: Minor
                      Found in source/class/core/Class.js and 1 other location - About 45 mins to fix
                      source/class/core/Class.js on lines 87..89

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

                      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

                                  if (jasy.Env.isSet("debug"))
                                  {
                                      core.Assert.isType(array, "Array");
                                      core.Assert.isNotUndefined(value);
                                  }
                      Severity: Minor
                      Found in source/class/core/Array.js and 1 other location - About 45 mins to fix
                      source/class/core/Array.js on lines 326..330

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

                      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

                                          if (propertyInit !== undef) {
                                              value = propertyInit;
                                          }
                                          else if (jasy.Env.isSet("debug"))
                                          {
                      Severity: Minor
                      Found in source/class/core/property/Simple.js and 1 other location - About 45 mins to fix
                      source/class/core/property/Multi.js on lines 396..405

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

                      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

                                              } else {
                                                  throw new Error("Included class " + includedClass.className + " overwrites member " + key + " of other included class " + allIncludeMembers[key].className + " in class " + name);
                                              }
                      Severity: Minor
                      Found in source/class/core/Class.js and 1 other location - About 45 mins to fix
                      source/class/core/Class.js on lines 79..81

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

                      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

                                                  if (propertyInit !== Undefined) {
                                                      newValue = propertyInit;
                                                  }
                                                  else if (jasy.Env.isSet("debug"))
                                                  {
                      Severity: Minor
                      Found in source/class/core/property/Multi.js and 1 other location - About 45 mins to fix
                      source/class/core/property/Simple.js on lines 289..298

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

                      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

                                  if (jasy.Env.isSet("debug"))
                                  {
                                      core.Assert.isType(array, "Array");
                                      core.Assert.isNotUndefined(value);
                                  }
                      Severity: Minor
                      Found in source/class/core/Array.js and 1 other location - About 45 mins to fix
                      source/class/core/Array.js on lines 78..82

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

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

                            if (self.__isAnimating) {
                              core.effect.Animate.stop(self.__isAnimating);
                              self.__isAnimating = false;
                            }
                      Severity: Major
                      Found in source/class/core/ui/Scroller.js and 2 other locations - About 40 mins to fix
                      source/class/core/ui/Scroller.js on lines 479..482
                      source/class/core/ui/Scroller.js on lines 610..613

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

                      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

                            if (top > self.__maxScrollTop) {
                              top = self.__maxScrollTop;
                            } else if (top < 0) {
                              top = 0;
                            }
                      Severity: Minor
                      Found in source/class/core/ui/Scroller.js and 1 other location - About 40 mins to fix
                      source/class/core/ui/Scroller.js on lines 430..434

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

                      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

                            if (left > self.__maxScrollLeft) {
                              left = self.__maxScrollLeft;
                            } else if (left < 0) {
                              left = 0;
                            }
                      Severity: Minor
                      Found in source/class/core/ui/Scroller.js and 1 other location - About 40 mins to fix
                      source/class/core/ui/Scroller.js on lines 437..441

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

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

                            if (self.__isDecelerating) {
                              core.effect.Animate.stop(self.__isDecelerating);
                              self.__isDecelerating = false;
                            }
                      Severity: Major
                      Found in source/class/core/ui/Scroller.js and 2 other locations - About 40 mins to fix
                      source/class/core/ui/Scroller.js on lines 479..482
                      source/class/core/ui/Scroller.js on lines 616..619

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

                      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