nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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

          imageLoad: function() {
            var
              $images       = $module.find('img'),
              imageCount    = $images.length,
              index         = imageCount,
Severity: Minor
Found in static/components/visibility.js - About 1 hr to fix

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

            generateResults: function(response) {
              module.debug('Generating html from response', response);
              var
                template       = settings.templates[settings.type],
                isProperObject = ($.isPlainObject(response.results) && !$.isEmptyObject(response.results)),
    Severity: Minor
    Found in static/components/search.js - About 1 hr to fix

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

              increment: function(incrementValue) {
                var
                  total          = module.total || false,
                  edgeValue,
                  startValue,
      Severity: Minor
      Found in static/components/progress.js - About 1 hr to fix

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

                  html: function(source, id, url) {
                    module.debug('Generating embed html');
                    var
                      html
                    ;
        Severity: Minor
        Found in static/components/video.js - About 1 hr to fix

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

                      $context
                        .off('scroll' + eventNamespace)
                        .on('scroll' + eventNamespace, module.event.scroll)
                        .on('scrollchange' + eventNamespace, module.event.scrollchange)
                      ;
          Severity: Major
          Found in static/components/visibility.js and 1 other location - About 1 hr to fix
          static/components/sticky.js on lines 160..164

          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

          $.extend( $.easing, {
            easeOutQuad: function (x, t, b, c, d) {
              return -c *(t/=d)*(t-2) + b;
            }
          });
          Severity: Major
          Found in static/components/popup.js and 1 other location - About 1 hr to fix
          static/components/accordion.js on lines 571..575

          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

          $.extend( $.easing, {
            easeOutQuad: function (x, t, b, c, d) {
              return -c *(t/=d)*(t-2) + b;
            }
          });
          Severity: Major
          Found in static/components/accordion.js and 1 other location - About 1 hr to fix
          static/components/popup.js on lines 1217..1221

          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

                          for (i in $control.distritos) {
                              if ($control.distritos[i].id == $control.selected.distrito) {
                                  $control.barrios = $control.distritos[i].barrios;
                                  break;
                              }
          Severity: Major
          Found in static/js/frontend.directive.js and 1 other location - About 1 hr to fix
          static/js/frontend.directive.js on lines 83..88

          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

                      $scroll
                        .off('scroll' + eventNamespace)
                        .on('scroll' + eventNamespace, module.event.scroll)
                        .on('scrollchange' + eventNamespace, module.event.scrollchange)
                      ;
          Severity: Major
          Found in static/components/sticky.js and 1 other location - About 1 hr to fix
          static/components/visibility.js on lines 144..148

          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

                          for (i in $control.ubicaciones) {
                              if ($control.ubicaciones[i].id == $control.selected.departamento) {
                                  $control.distritos = $control.ubicaciones[i].distritos;
                                  break;
                              }
          Severity: Major
          Found in static/js/frontend.directive.js and 1 other location - About 1 hr to fix
          static/js/frontend.directive.js on lines 98..103

          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 address has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              $.fn.address = function(fn) {
                  $(this).each(function(index) {
                      if (!$(this).data('address')) {
                          $(this).on('click', function(e) {
                              if (e.shiftKey || e.ctrlKey || e.metaKey || e.which == 2) {
          Severity: Minor
          Found in static/js/jquery.address.js - About 1 hr to fix

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

                      display: function() {
                        var
                          title = settings.name + ':',
                          totalTime = 0
                        ;
            Severity: Minor
            Found in static/components/transition.js - About 1 hr to fix

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

              function smartSteps(min, max, section, opts) {
                  // 拿公共变量来接收 opts.steps 这个参数,就不用带着参数层层传递了,注意在函数的最终出口处释放这个值
                  custOpts    = opts || {};
                  custSteps   = custOpts.steps || mySteps;
                  custSecs    = custOpts.secs || mySections;
              Severity: Minor
              Found in static/js/dncp/util/smartSteps.js - About 1 hr to fix

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

                        determineTabs: function() {
                          var
                            $reference
                          ;
                
                
                Severity: Minor
                Found in static/components/tab.js - About 1 hr to fix

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

                            display: function() {
                              var
                                title = settings.name + ':',
                                totalTime = 0
                              ;
                  Severity: Minor
                  Found in static/components/rating.js - About 1 hr to fix

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

                              display: function() {
                                var
                                  title = settings.name + ':',
                                  totalTime = 0
                                ;
                    Severity: Minor
                    Found in static/components/search.js - About 1 hr to fix

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

                                hide: function(callback) {
                                  callback = $.isFunction(callback) ? callback : function(){};
                                  module.debug('Hiding pop-up');
                                  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
                                    $popup
                      Severity: Minor
                      Found in static/components/popup.js - About 1 hr to fix

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

                                initialize: function() {
                                  module.verbose('Initializing module');
                                  var
                                    prompt = $prompt[0],
                                    inputEvent   = (prompt !== undefined && prompt.oninput !== undefined)
                        Severity: Minor
                        Found in static/components/search.js - About 1 hr to fix

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

                                    form: function(event) {
                                      var
                                        allValid = true,
                                        apiRequest
                                      ;
                          Severity: Minor
                          Found in static/components/form.js - About 1 hr to fix

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

                                      display: function() {
                                        var
                                          title = settings.name + ':',
                                          totalTime = 0
                                        ;
                            Severity: Minor
                            Found in static/components/form.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language