webcol/Calima

View on GitHub
public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js

Summary

Maintainability
F
2 wks
Test Coverage

File bootstrap-datepicker.js has 1482 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* =========================================================
 * bootstrap-datepicker.js
 * Repo: https://github.com/eternicode/bootstrap-datepicker/
 * Demo: http://eternicode.github.io/bootstrap-datepicker/
 * Docs: http://bootstrap-datepicker.readthedocs.org/

    Function keydown has 114 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            keydown: function(e){
                if (this.picker.is(':not(:visible)')){
                    if (e.keyCode === 27) // allow escape to hide and re-show picker
                        this.show();
                    return;

      Function fill has 110 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              fill: function(){
                  var d = new Date(this.viewDate),
                      year = d.getUTCFullYear(),
                      month = d.getUTCMonth(),
                      startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,

        Function click has 108 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                click: function(e){
                    e.preventDefault();
                    var target = $(e.target).closest('span, td, th'),
                        year, month, day;
                    if (target.length === 1){

          Function parseDate has 103 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  parseDate: function(date, format, language){
                      if (!date)
                          return undefined;
                      if (date instanceof Date)
                          return date;

            Function _process_options has 102 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    _process_options: function(opts){
                        // Store raw options for reference
                        this._o = $.extend({}, this._o, opts);
                        // Processed options
                        var o = this.o = $.extend({}, this._o);

              Function _buildEvents has 69 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      _buildEvents: function(){
                          if (this.isInput){ // single input
                              this._events = [
                                  [this.element, {
                                      focus: $.proxy(this.show, this),

                Function place has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        place: function(){
                            if (this.isInline)
                                return;
                            var calendarWidth = this.picker.outerWidth(),
                                calendarHeight = this.picker.outerHeight(),

                  Function update has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          update: function(){
                              if (!this._allow_update)
                                  return;
                  
                              var oldDates = this.dates.copy(),

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

                        var Datepicker = function(element, options){
                            this.dates = new DateArray();
                            this.viewDate = UTCToday();
                            this.focusDate = null;
                    
                    

                      Function DateArray has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var DateArray = (function(){
                              var extras = {
                                  get: function(i){
                                      return this.slice(i)[0];
                                  },

                        Function moveMonth has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                moveMonth: function(date, dir){
                                    if (!date)
                                        return undefined;
                                    if (!dir)
                                        return date;

                          Function updateNavArrows has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  updateNavArrows: function(){
                                      if (!this._allow_update)
                                          return;
                          
                                      var d = new Date(this.viewDate),

                            Function getClassNames has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    getClassNames: function(date){
                                        var cls = [],
                                            year = this.viewDate.getUTCFullYear(),
                                            month = this.viewDate.getUTCMonth(),
                                            today = new Date();

                              Function datepicker has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $.fn.datepicker = function(option){
                                      var args = Array.apply(null, arguments);
                                      args.shift();
                                      var internal_return;
                                      this.each(function(){

                                Avoid deeply nested control flow statements.
                                Open

                                                                if (this.o.minViewMode === 2){
                                                                    this._setDate(UTCDate(year, month, day));
                                                                }

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              else if (target.is('.new')){
                                                                  if (month === 11){
                                                                      month = 0;
                                                                      year += 1;
                                                                  }

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    if (this.o.minViewMode === 1){
                                                                        this._setDate(UTCDate(year, month, day));
                                                                    }

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                              if (this.viewMode === 1)
                                                                                  this._trigger('changeYear', this.viewDate);

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if (month === 0){
                                                                            month = 11;
                                                                            year -= 1;
                                                                        }
                                                                        else {

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

                                                  _applyEvents: function(evs){
                                                      for (var i=0, el, ch, ev; i < evs.length; i++){
                                                          el = evs[i][0];
                                                          if (evs[i].length === 2){
                                                              ch = undefined;
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 282..295

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

                                          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

                                                  _unapplyEvents: function(evs){
                                                      for (var i=0, el, ev, ch; i < evs.length; i++){
                                                          el = evs[i][0];
                                                          if (evs[i].length === 2){
                                                              ch = undefined;
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 268..281

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

                                          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

                                                              [this.element.find('input'), {
                                                                  focus: $.proxy(this.show, this),
                                                                  keyup: $.proxy(function(e){
                                                                      if ($.inArray(e.keyCode, [27,37,39,38,40,32,13,9]) === -1)
                                                                          this.update();
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 299..306

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

                                          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

                                                              [this.element, {
                                                                  focus: $.proxy(this.show, this),
                                                                  keyup: $.proxy(function(e){
                                                                      if ($.inArray(e.keyCode, [27,37,39,38,40,32,13,9]) === -1)
                                                                          this.update();
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 312..319

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

                                          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 (!!o.startDate){
                                                              if (o.startDate instanceof Date)
                                                                  o.startDate = this._local_to_utc(this._zero_time(o.startDate));
                                                              else
                                                                  o.startDate = DPGlobal.parseDate(o.startDate, format, o.language);
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 216..224

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

                                          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 (!!o.endDate){
                                                              if (o.endDate instanceof Date)
                                                                  o.endDate = this._local_to_utc(this._zero_time(o.endDate));
                                                              else
                                                                  o.endDate = DPGlobal.parseDate(o.endDate, format, o.language);
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 205..213

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

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

                                                              else if (e.shiftKey){
                                                                  newDate = this.moveMonth(this.dates.get(-1) || UTCToday(), dir);
                                                                  newViewDate = this.moveMonth(focusDate, dir);
                                                                  this._trigger('changeMonth', this.viewDate);
                                                              }
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1138..1153
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1166..1181
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1171..1181

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

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

                                                              else if (e.shiftKey){
                                                                  newDate = this.moveMonth(this.dates.get(-1) || UTCToday(), dir);
                                                                  newViewDate = this.moveMonth(focusDate, dir);
                                                                  this._trigger('changeMonth', this.viewDate);
                                                              }
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1138..1153
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1143..1153
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1166..1181

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

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

                                                              if (e.ctrlKey){
                                                                  newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
                                                                  newViewDate = this.moveYear(focusDate, dir);
                                                                  this._trigger('changeYear', this.viewDate);
                                                              }
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1138..1153
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1143..1153
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1171..1181

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

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

                                                              if (e.ctrlKey){
                                                                  newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
                                                                  newViewDate = this.moveYear(focusDate, dir);
                                                                  this._trigger('changeYear', this.viewDate);
                                                              }
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1143..1153
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1166..1181
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1171..1181

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

                                          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 (this.dateWithinRange(newDate)){
                                                                  this.focusDate = this.viewDate = newViewDate;
                                                                  this.setValue();
                                                                  this.fill();
                                                                  e.preventDefault();
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1182..1187

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

                                          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 (this.dateWithinRange(newDate)){
                                                                  this.focusDate = this.viewDate = newViewDate;
                                                                  this.setValue();
                                                                  this.fill();
                                                                  e.preventDefault();
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1154..1159

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

                                          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

                                                                      case 'MM':
                                                                          filtered = $(dates[language].months).filter(match_part);
                                                                          val = $.inArray(filtered[0], dates[language].months) + 1;
                                                                          break;
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1552..1555

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

                                          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

                                                                      case 'M':
                                                                          filtered = $(dates[language].monthsShort).filter(match_part);
                                                                          val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
                                                                          break;
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1548..1551

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

                                          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

                                                      switch (o.startView){
                                                          case 2:
                                                          case 'decade':
                                                              o.startView = 2;
                                                              break;
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 175..186

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

                                          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

                                                      switch (o.minViewMode){
                                                          case 1:
                                                          case 'months':
                                                              o.minViewMode = 1;
                                                              break;
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 162..173

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

                                          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 (this.isInput){
                                                          element = this.element;
                                                      }
                                                      else if (this.component){
                                                          element = this.element.find('input');
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1220..1225

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

                                          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 (this.isInput){
                                                              element = this.element;
                                                          }
                                                          else if (this.component){
                                                              element = this.element.find('input');
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 1041..1046

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

                                          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

                                                  setDaysOfWeekDisabled: function(daysOfWeekDisabled){
                                                      this._process_options({daysOfWeekDisabled: daysOfWeekDisabled});
                                                      this.update();
                                                      this.updateNavArrows();
                                                  },
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 522..526
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 528..532

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

                                          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

                                                  setStartDate: function(startDate){
                                                      this._process_options({startDate: startDate});
                                                      this.update();
                                                      this.updateNavArrows();
                                                  },
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 528..532
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 534..538

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

                                          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

                                                  setEndDate: function(endDate){
                                                      this._process_options({endDate: endDate});
                                                      this.update();
                                                      this.updateNavArrows();
                                                  },
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 522..526
                                          public_/plantillas/inspinia/js/plugins/datapicker/bootstrap-datepicker.js on lines 534..538

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

                                          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

                                              $.fn.datepicker.noConflict = function(){
                                                  $.fn.datepicker = old;
                                                  return this;
                                              };
                                          public_/plantillas/inspinia/js/plugins/bootstrap-markdown/bootstrap-markdown.js on lines 1338..1341

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

                                          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

                                          There are no issues that match your filters.

                                          Category
                                          Status