sebastian-software/core

View on GitHub

Showing 406 of 406 total issues

Function zoomTo has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    zoomTo: function(level, animate, originLeft, originTop) {

      var self = this;

      if (!self.options.zooming) {
Severity: Minor
Found in source/class/core/ui/Scroller.js - About 1 hr to fix

    Function removeAllListeners has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          removeAllListeners : function(type, capture)
          {
            if (jasy.Env.isSet("debug"))
            {
              if (type != null)
    Severity: Minor
    Found in source/class/core/event/MEventTarget.js - About 1 hr to fix

      Function loadPartial has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          loadPartial : function(assetId, nostrip)
          {
            return new core.event.Promise(function(resolve, reject) {
      
              // Auto extract partial name from file name
      Severity: Minor
      Found in source/class/core/view/Dom.js - About 1 hr to fix

        Function checkMixinMemberConflicts has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var checkMixinMemberConflicts = function(include, members, name)
                {
                    // Simplifies routine
                    if (!members) {
                        members = {};
        Severity: Minor
        Found in source/class/core/Class.js - About 1 hr to fix

          Function query has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              query : function(expression)
              {
                var splits = expression.split("/");
                var current = this;
          
          
          Severity: Minor
          Found in source/class/core/presenter/Abstract.js - About 1 hr to fix

            Function __treeWalker has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    __treeWalker: function(node, base) {
            
                        var html = '';
            
                        var filter = function(value) {
            Severity: Minor
            Found in source/class/core/apibrowser/Browser.js - About 1 hr to fix

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

                var addListener = function(elem, callback, context)
                {
                  if (context) {
                    callback = core.Function.bind(callback, context);
                  }
              Severity: Major
              Found in source/class/core/bom/Transition.js and 1 other location - About 1 hr to fix
              source/class/core/bom/Transition.js on lines 38..45

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

              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

                          var removeClass = function(elem, className)
                          {
                              if (jasy.Env.isSet("debug")) {
                                  validate(arguments);
                              }
              Severity: Major
              Found in source/class/core/bom/ClassName.js and 1 other location - About 1 hr to fix
              source/class/core/bom/ClassName.js on lines 41..48

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

              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

                      getRandomRes53 = function() {
                          // Used version from MersenneTwister
                          var a = getRandomInt32() >>> 5,
                              b = getRandomInt32() >>> 6;
                          return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0);
              Severity: Major
              Found in source/class/core/util/Random.js and 1 other location - About 1 hr to fix
              source/class/core/util/Random.js on lines 55..60

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

              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

                      getRandomRes53 = function() {
                          // Used version from MersenneTwister
                          var a = getRandomInt32() >>> 5,
                              b = getRandomInt32() >>> 6;
                          return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0);
              Severity: Major
              Found in source/class/core/util/Random.js and 1 other location - About 1 hr to fix
              source/class/core/util/Random.js on lines 30..35

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

              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

                          var addClass = function(elem, className)
                          {
                              if (jasy.Env.isSet("debug")) {
                                  validate(arguments);
                              }
              Severity: Major
              Found in source/class/core/bom/ClassName.js and 1 other location - About 1 hr to fix
              source/class/core/bom/ClassName.js on lines 53..60

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

              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

                var removeListener = function(elem, callback, context)
                {
                  if (context) {
                    callback = core.Function.bind(callback, context);
                  }
              Severity: Major
              Found in source/class/core/bom/Transition.js and 1 other location - About 1 hr to fix
              source/class/core/bom/Transition.js on lines 25..32

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

              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

              Function compareTo has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    compareTo : function(other)
                    {
                      if (this === other) {
                        return "equal";
                      }
              Severity: Minor
              Found in source/class/core/util/HashPath.js - About 1 hr to fix

                Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      show : function(approach)
                      {
                        var elem = this.getRoot();
                        if (!elem) {
                          return;
                Severity: Minor
                Found in source/class/core/view/DomLayer.js - About 1 hr to fix

                  Function loadTemplate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      loadTemplate : function(assetId, nostrip)
                      {
                        return new core.event.Promise(function(resolve, reject) {
                  
                          // Use cached template if available
                  Severity: Minor
                  Found in source/class/core/view/Dom.js - About 1 hr to fix

                    Function hide has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          hide : function(approach)
                          {
                            var elem = this.getRoot();
                            if (!elem) {
                              return;
                    Severity: Minor
                    Found in source/class/core/view/DomLayer.js - About 1 hr to fix

                      Function get has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          get : (function()
                          {
                              if (jasy.Env.isSet("runtime", "browser")) {
                                  var items = location.search.substring(1).split("&");
                              } else {
                      Severity: Minor
                      Found in source/class/core/detect/Param.js - About 1 hr to fix

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

                                if (jasy.Env.isSet("debug"))
                                {
                                    core.Assert.isEqual(arguments.length, 1);
                                    core.dom.Node.assertIsNode(item);
                                }
                        Severity: Major
                        Found in source/class/core/bom/FormItem.js and 1 other location - About 1 hr to fix
                        source/class/core/bom/FormItem.js on lines 21..25

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

                        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.isEqual(arguments.length, 1);
                                    core.dom.Node.assertIsNode(item);
                                }
                        Severity: Major
                        Found in source/class/core/bom/FormItem.js and 1 other location - About 1 hr to fix
                        source/class/core/bom/FormItem.js on lines 90..94

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

                        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

                            show : function(approach)
                            {
                              var elem = this.getRoot();
                              if (!elem) {
                                return;
                        Severity: Major
                        Found in source/class/core/view/Dom.js and 1 other location - About 1 hr to fix
                        source/class/core/view/Dom.js on lines 179..188

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

                        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