arastta/arastta

View on GitHub
admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js

Summary

Maintainability
F
1 mo
Test Coverage

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

/*! X-editable - v1.5.1 
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Severity: Major
Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 wk to fix

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

            click: function(e) {
                e.preventDefault();
                var target = $(e.target).closest('span, td, th');
                if (target.length == 1) {
                    switch(target[0].nodeName.toLowerCase()) {
    Severity: Major
    Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 3 hrs to fix

      Function fill has 94 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,
      Severity: Major
      Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 3 hrs to fix

        Function editable has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.fn.editable = function (option) {
                //special API methods returning non-jquery object
                var result = {}, args = arguments, datakey = 'editable';
                switch (option) {
                    /**
        Severity: Major
        Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 3 hrs to fix

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

                  parseDate: function(date, format, language) {
                      if (date instanceof Date) return date;
                      if (typeof format === 'string')
                          format = DPGlobal.parseFormat(format);
                      if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(date)) {
          Severity: Major
          Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 3 hrs to fix

            Function onSourceReady has 86 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    onSourceReady: function (success, error) {
                        //run source if it function
                        var source;
                        if ($.isFunction(this.options.source)) {
                            source = this.options.source.call(this.options.scope);
            Severity: Major
            Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 3 hrs to fix

              Function keydown has 83 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;
              Severity: Major
              Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 3 hrs to fix

                Function init has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        init: function () {
                            var isValueByText = false, 
                                doAutotext, finalize;
                
                            //name
                Severity: Major
                Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 2 hrs to fix

                  Function submit has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          submit: function(e) {
                              e.stopPropagation();
                              e.preventDefault();
                              
                              //get new value from input
                  Severity: Major
                  Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 2 hrs to fix

                    Function setValue has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            setValue: function(value) {
                                if(!value) {
                                    return;
                                }
                                
                    Severity: Major
                    Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 2 hrs to fix

                      Function _buildEvents has 51 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),
                      Severity: Major
                      Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 2 hrs to fix

                        Function _process_options has 48 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);
                        Severity: Minor
                        Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                              var Datepicker = function(element, options) {
                                  var that = this;
                          
                                  this._process_options(options);
                          
                          
                          Severity: Minor
                          Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                            Function init has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    init: function(element, options) {
                                        this.$element = $(element);
                                        //since 1.4.1 container do not use data-* directly as they already merged into options.
                                        this.options = $.extend({}, $.fn.editableContainer.defaults, options);         
                                        this.splitOptions();
                            Severity: Minor
                            Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                              Function render has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      render: function() {
                                          //init loader
                                          this.$loading = $($.fn.editableform.loading);        
                                          this.$div.empty().append(this.$loading);
                                          
                              Severity: Minor
                              Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                    var Constructor = function (options) {
                                        this.init('select2', options, Constructor.defaults);
                                
                                        options.select2 = options.select2 || {};
                                
                                
                                Severity: Minor
                                Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                  Function createInput has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                         createInput: function(options) {
                                             var TypeConstructor, typeOptions, input,
                                             type = options.type;
                                  
                                             //`date` is some kind of virtual type that is transformed to one of exact types
                                  Severity: Minor
                                  Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                    Function makeArray has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            makeArray: function(data) {
                                                var count, obj, result = [], item, iterateItem;
                                                if(!data || typeof data === 'string') {
                                                    return null; 
                                                }
                                    Severity: Minor
                                    Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                          var datepicker = $.fn.datepicker = function ( option ) {
                                              var args = Array.apply(null, arguments);
                                              args.shift();
                                              var internal_return,
                                                  this_return;
                                      Severity: Minor
                                      Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                                setPosition: function () { 
                                        
                                                    (function() {
                                                    /*    
                                                        var $tip = this.tip()
                                        Severity: Minor
                                        Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                                  getValue: function(format) {
                                                      var dt, values = {}, 
                                                          that = this,
                                                          notSelected = false;
                                                          
                                          Severity: Minor
                                          Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                                    getClassNames: function(date){
                                                        var cls = [],
                                                            year = this.viewDate.getUTCFullYear(),
                                                            month = this.viewDate.getUTCMonth(),
                                                            currentDate = this.date.valueOf(),
                                            Severity: Minor
                                            Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                                      updateNavArrows: function() {
                                                          if (!this._allow_update) return;
                                              
                                                          var d = new Date(this.viewDate),
                                                              year = d.getUTCFullYear(),
                                              Severity: Minor
                                              Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                                        handleEmpty: function (isEmpty) {
                                                            //do not handle empty if we do not display anything
                                                            if(this.options.display === false) {
                                                                return;
                                                            }
                                                Severity: Minor
                                                Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                                  Function save has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                          save: function(e, params) {
                                                              //mark element with unsaved class if needed
                                                              if(this.options.unsavedclass) {
                                                                  /*
                                                                   Add unsaved css to element if:
                                                  Severity: Minor
                                                  Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                                    Function renderList has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                            renderList: function() {
                                                                this.$input.empty();
                                                    
                                                                var fillItems = function($el, data) {
                                                                    var attr;
                                                    Severity: Minor
                                                    Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                                      Function itemsByValue has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                             itemsByValue: function(value, sourceData, valueProp) {
                                                                 if(!sourceData || value === null) {
                                                                     return [];
                                                                 }
                                                                 
                                                      Severity: Minor
                                                      Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                                        Function save has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                save: function(submitValue) {
                                                                    //try parse composite pk defined as json string in data-pk 
                                                                    this.options.pk = $.fn.editableutils.tryParseJson(this.options.pk, true); 
                                                                    
                                                                    var pk = (typeof this.options.pk === 'function') ? this.options.pk.call(this.options.scope) : this.options.pk,
                                                        Severity: Minor
                                                        Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

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

                                                                  moveMonth: function(date, dir){
                                                                      if (!dir) return date;
                                                                      var new_date = new Date(date.valueOf()),
                                                                          day = new_date.getUTCDate(),
                                                                          month = new_date.getUTCMonth(),
                                                          Severity: Minor
                                                          Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 hr to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                                            if (month === 0) {
                                                                                                month = 11;
                                                                                                year -= 1;
                                                                                            } else {
                                                                                                month -= 1;
                                                            Severity: Major
                                                            Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 45 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                                                              if (this.o.minViewMode === 1) {
                                                                                                  this._setDate(UTCDate(year, month, day,0,0,0,0));
                                                                                              }
                                                              Severity: Major
                                                              Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                                            if(item.children) {
                                                                                                item.children = this.makeArray(item.children);   
                                                                                            }
                                                                Severity: Major
                                                                Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 45 mins to fix

                                                                  Avoid deeply nested control flow statements.
                                                                  Open

                                                                                                  if (this.o.minViewMode === 2) {
                                                                                                      this._setDate(UTCDate(year, month, day,0,0,0,0));
                                                                                                  }
                                                                  Severity: Major
                                                                  Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 45 mins to fix

                                                                    Avoid deeply nested control flow statements.
                                                                    Open

                                                                                                } else if (target.is('.new')) {
                                                                                                    if (month == 11) {
                                                                                                        month = 0;
                                                                                                        year += 1;
                                                                                                    } else {
                                                                    Severity: Major
                                                                    Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 45 mins to fix

                                                                      Consider simplifying this complex logical expression.
                                                                      Open

                                                                                  if(this.options.unsavedclass) {
                                                                                      /*
                                                                                       Add unsaved css to element if:
                                                                                        - url is not user's function 
                                                                                        - value was not sent to server
                                                                      Severity: Major
                                                                      Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 40 mins to fix

                                                                        Consider simplifying this complex logical expression.
                                                                        Open

                                                                                    if (autoPlace) {
                                                                                        var $parent = this.$element.parent();
                                                                        
                                                                                        var orgPlacement = placement;
                                                                                        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop;
                                                                        Severity: Major
                                                                        Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 40 mins to fix

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

                                                                                      if (autoPlace) {
                                                                                          var $parent = this.$element.parent();
                                                                          
                                                                                          var orgPlacement = placement;
                                                                                          var docScroll    = document.documentElement.scrollTop || document.body.scrollTop;
                                                                          install/view/javascript/bootstrap/js/bootstrap.js on lines 1244..1262

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

                                                                          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

                                                                          (function ($) {
                                                                              "use strict";
                                                                              
                                                                              var Url = function (options) {
                                                                                  this.init('url', options, Url.defaults);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3450..3461
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3484..3495

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

                                                                          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

                                                                          (function ($) {
                                                                              "use strict";
                                                                              
                                                                              var Email = function (options) {
                                                                                  this.init('email', options, Email.defaults);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3467..3478
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3484..3495

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

                                                                          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

                                                                          (function ($) {
                                                                              "use strict";
                                                                              
                                                                              var Tel = function (options) {
                                                                                  this.init('tel', options, Tel.defaults);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3450..3461
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3467..3478

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

                                                                          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.options.clear) {
                                                                                          this.$clear = $('<a href="#"></a>').html(this.options.clear).click($.proxy(function(e){
                                                                                              e.preventDefault();
                                                                                              e.stopPropagation();
                                                                                              this.clear();
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6250..6258

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

                                                                          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.options.clear) {
                                                                                          this.$clear = $('<a href="#"></a>').html(this.options.clear).click($.proxy(function(e){
                                                                                              e.preventDefault();
                                                                                              e.stopPropagation();
                                                                                              this.clear();
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6570..6578

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

                                                                          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

                                                                                  fillMinute: function() {
                                                                                      var items = this.fillCommon('m'), name, i,
                                                                                          twoDigit = this.options.template.indexOf('mm') !== -1;
                                                                          
                                                                                      for(i=0; i<=59; i+= this.options.minuteStep) {
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 4205..4214

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

                                                                          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

                                                                                  fillSecond: function() {
                                                                                      var items = this.fillCommon('s'), name, i,
                                                                                          twoDigit = this.options.template.indexOf('ss') !== -1;
                                                                          
                                                                                      for(i=0; i<=59; i+= this.options.secondStep) {
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 4191..4200

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

                                                                          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(function(){
                                                                                                              var m = this.slice(0, parts[i].length),
                                                                                                                  p = parts[i].slice(0, m.length);
                                                                                                              return m == p;
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6064..6071

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

                                                                          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(function(){
                                                                                                              var m = this.slice(0, parts[i].length),
                                                                                                                  p = parts[i].slice(0, m.length);
                                                                                                              return m == p;
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6056..6063

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

                                                                          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 (target.is('.old')) {
                                                                                                          if (month === 0) {
                                                                                                              month = 11;
                                                                                                              year -= 1;
                                                                                                          } else {
                                                                          admin/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js on lines 680..694

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

                                                                          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

                                                                                  clear:  function() {
                                                                                      this.$input.data('datepicker').date = null;
                                                                                      this.$input.find('.active').removeClass('active');
                                                                                      if(!this.options.showbuttons) {
                                                                                          this.$input.closest('form').submit(); 
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6627..6633

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

                                                                          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

                                                                                 clear: function() {
                                                                                    this.$input.data('datetimepicker').date = null;
                                                                                    this.$input.find('.active').removeClass('active');
                                                                                    if(!this.options.showbuttons) {
                                                                                       this.$input.closest('form').submit(); 
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6293..6299

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

                                                                          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

                                                                                  _applyEvents: function(evs){
                                                                                      for (var i=0, el, ev; i<evs.length; i++){
                                                                                          el = evs[i][0];
                                                                                          ev = evs[i][1];
                                                                                          el.on(ev);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5084..5090

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

                                                                          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; i<evs.length; i++){
                                                                                          el = evs[i][0];
                                                                                          ev = evs[i][1];
                                                                                          el.off(ev);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5077..5083

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

                                                                          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.date = newDate;
                                                                                                  this.viewDate = newViewDate;
                                                                                                  this.setValue();
                                                                                                  this.update();
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5748..5755

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

                                                                          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.date = newDate;
                                                                                                  this.viewDate = newViewDate;
                                                                                                  this.setValue();
                                                                                                  this.update();
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5723..5730

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

                                                                          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;
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5042..5053

                                                                          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

                                                                                      this.$input.keyup($.proxy(function(){
                                                                                         this.$tpl.removeData('date');
                                                                                         this.$tpl.bdatepicker('update');
                                                                                      }, this));
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6762..6765

                                                                          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

                                                                                      this.$input.keyup($.proxy(function(){
                                                                                         this.$tpl.removeData('date');
                                                                                         this.$tpl.datetimepicker('update');
                                                                                      }, this));
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6439..6442

                                                                          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;
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5029..5040

                                                                          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

                                                                                                  if(k === 'minute' && that.options.minuteStep > 1 && that.options.roundTime) {
                                                                                                     v = getNearest(that['$'+k], v);
                                                                                                  }
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 4339..4341

                                                                          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

                                                                                      this.picker.find('tfoot th.clear')
                                                                                                  .text(dates[this.o.language].clear)
                                                                                                  .toggle(this.o.clearBtn !== false);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5392..5394

                                                                          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

                                                                                      this.picker.find('tfoot th.today')
                                                                                                  .text(dates[this.o.language].today)
                                                                                                  .toggle(this.o.todayBtn !== false);
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5395..5397

                                                                          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

                                                                                                  if(k === 'second' && that.options.secondStep > 1 && that.options.roundTime) {
                                                                                                     v = getNearest(that['$'+k], v);
                                                                                                  }                       
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 4335..4337

                                                                          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

                                                                                      this.$input.on('keydown.editable', function (e) {
                                                                                          if (e.which === 13) {
                                                                                              $(this).closest('form').submit();
                                                                                          }
                                                                                      });            
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3342..3346

                                                                          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

                                                                                     this.$input.on('keydown', function(e){
                                                                                         if (e.which === 13) {
                                                                                             $(this).closest('form').submit();
                                                                                         }
                                                                                     });
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 3183..3187

                                                                          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

                                                                                  modes: [
                                                                                      {
                                                                                          clsName: 'days',
                                                                                          navFnc: 'Month',
                                                                                          navStep: 1
                                                                          admin/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js on lines 1107..1123

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

                                                                          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(this.update, this),
                                                                                                  keydown: $.proxy(this.keydown, this)
                                                                                              }],
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5094..5098

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

                                                                          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(this.update, this),
                                                                                                  keydown: $.proxy(this.keydown, this)
                                                                                              }]
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5104..5108

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

                                                                          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

                                                                                      this.options.datetimepicker = $.extend({}, defaults.datetimepicker, options.datetimepicker, {
                                                                                          format: this.options.viewformat
                                                                                      });
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6231..6233

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

                                                                          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

                                                                                      this.options.datepicker = $.extend({}, defaults.datepicker, options.datepicker, {
                                                                                          format: this.options.viewformat
                                                                                      });
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6541..6543

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

                                                                          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

                                                                                      return value ? this.dpg.formatDate(this.toUTC(value), this.parsedFormat, this.options.datetimepicker.language, this.options.formatType) : '';
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6583..6583

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

                                                                          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 text = value ? this.dpg.formatDate(this.toUTC(value), this.parsedViewFormat, this.options.datetimepicker.language, this.options.formatType) : '';
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6599..6599

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

                                                                          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');
                                                                                          }
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5632..5636

                                                                          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');
                                                                                      }
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5768..5772

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

                                                                                 str2value: function(str) {
                                                                                     //parseDate return utc date!
                                                                                     var value = this.parseDate(str, this.parsedFormat);
                                                                                     return value ? this.fromUTC(value) : null;
                                                                                 },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6591..6595

                                                                          Duplicated Code

                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                          Tuning

                                                                          This issue has a mass of 50.

                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                          Refactorings

                                                                          Further Reading

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

                                                                                  html2value: function(html) {
                                                                                      //parseDate return utc date!
                                                                                      var value = this.parseDate(html, this.parsedViewFormat); 
                                                                                      return value ? this.fromUTC(value) : null;
                                                                                  },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6602..6606

                                                                          Duplicated Code

                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                          Tuning

                                                                          This issue has a mass of 50.

                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                          Refactorings

                                                                          Further Reading

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

                                                                                      if (typeof option === 'string') { //call method 
                                                                                          data[option].apply(data, Array.prototype.slice.call(args, 1));
                                                                                      } 
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 1325..1327
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 2142..2144

                                                                          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

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

                                                                                      if (typeof option === 'string') { //call method 
                                                                                          data[option].apply(data, Array.prototype.slice.call(args, 1));
                                                                                      } 
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 409..411
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 1325..1327

                                                                          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

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

                                                                                      if (typeof option === 'string') { //call method 
                                                                                          data[option].apply(data, Array.prototype.slice.call(args, 1));
                                                                                      }            
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 409..411
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 2142..2144

                                                                          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();
                                                                                  },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5259..5263
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5265..5269

                                                                          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();
                                                                                  },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5253..5257
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5265..5269

                                                                          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

                                                                                  setDaysOfWeekDisabled: function(daysOfWeekDisabled){
                                                                                      this._process_options({daysOfWeekDisabled: daysOfWeekDisabled});
                                                                                      this.update();
                                                                                      this.updateNavArrows();
                                                                                  },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5253..5257
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 5259..5263

                                                                          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

                                                                                 fromUTC: function(value) {
                                                                                   return value ? new Date(value.valueOf() + value.getTimezoneOffset() * 60000) : value;  
                                                                                 },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6645..6647

                                                                          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

                                                                                 toUTC: function(value) {
                                                                                   return value ? new Date(value.valueOf() - value.getTimezoneOffset() * 60000) : value;  
                                                                                 },
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6650..6652

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

                                                                              var DateTime = function (options) {
                                                                                  this.init('datetime', options, DateTime.defaults);
                                                                                  this.initPicker(options, DateTime.defaults);
                                                                              };
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6210..6213
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6419..6422
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6743..6746

                                                                          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

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

                                                                              var DateTimeField = function (options) {
                                                                                  this.init('datetimefield', options, DateTimeField.defaults);
                                                                                  this.initPicker(options, DateTimeField.defaults);
                                                                              };
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6210..6213
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6419..6422
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6520..6523

                                                                          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

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

                                                                              var DateField = function (options) {
                                                                                  this.init('datefield', options, DateField.defaults);
                                                                                  this.initPicker(options, DateField.defaults);
                                                                              };
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6210..6213
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6520..6523
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6743..6746

                                                                          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

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

                                                                              var Date = function (options) {
                                                                                  this.init('date', options, Date.defaults);
                                                                                  this.initPicker(options, Date.defaults);
                                                                              };
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6419..6422
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6520..6523
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6743..6746

                                                                          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

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

                                                                                      if(!this.options.viewformat) {
                                                                                          this.options.viewformat = this.options.format;
                                                                                      }
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6222..6224

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

                                                                          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(!this.options.viewformat) {
                                                                                          this.options.viewformat = this.options.format;
                                                                                      }
                                                                          admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js on lines 6532..6534

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

                                                                          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