gecos-team/gecoscc-ui

View on GitHub
gecoscc/static/js/libs/fuelux.js

Summary

Maintainability
F
2 mos
Test Coverage

File fuelux.js has 6098 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Fuel UX v3.16.0 
 * Copyright 2012-2017 ExactTarget
 * Licensed under the BSD-3-Clause license (https://github.com/ExactTarget/fuelux/blob/master/LICENSE)
 */
Severity: Major
Found in gecoscc/static/js/libs/fuelux.js - About 2 wks to fix

    Function _parseAndSetRecurrencePattern has 112 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                _parseAndSetRecurrencePattern: function( recurrencePattern, startTime ) {
                    var recur = {};
                    var i = 0;
                    var item = '';
                    var commaPatternSplit;
    Severity: Major
    Found in gecoscc/static/js/libs/fuelux.js - About 4 hrs to fix

      Function renderMonth has 109 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  renderMonth: function( date ) {
                      date = date || new Date();
      
                      var firstDay = new Date( date.getFullYear(), date.getMonth(), 1 ).getDay();
                      var lastDate = new Date( date.getFullYear(), date.getMonth() + 1, 0 ).getDate();
      Severity: Major
      Found in gecoscc/static/js/libs/fuelux.js - About 4 hrs to fix

        Function Repeater has 107 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var Repeater = function Repeater( element, options ) {
                    var self = this;
                    var $btn;
                    var currentView;
        
        
        Severity: Major
        Found in gecoscc/static/js/libs/fuelux.js - About 4 hrs to fix

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

                      getValue: function getValue() {
                          // FREQ = frequency (secondly, minutely, hourly, daily, weekdays, weekly, monthly, yearly)
                          // BYDAY = when picking days (MO,TU,WE,etc)
                          // BYMONTH = when picking months (Jan,Feb,March) - note the values should be 1,2,3...
                          // BYMONTHDAY = when picking days of the month (1,2,3...)
          Severity: Major
          Found in gecoscc/static/js/libs/fuelux.js - About 4 hrs to fix

            Function inputEvent has 84 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        inputEvent: function inputEvent( e ) {
                            var self = this;
                            var text = self.options.cleanInput( this.$addItem.val() );
                            var isFocusOutEvent = e.type === 'focusout';
                            var blurredAfterInput = ( isFocusOutEvent && text.length > 0 );
            Severity: Major
            Found in gecoscc/static/js/libs/fuelux.js - About 3 hrs to fix

              Function renderHeader has 83 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      var renderHeader = function renderHeader( $tr, columns, index ) {
                          var chevDown = 'glyphicon-chevron-down';
                          var chevron = '.glyphicon.rlc:first';
                          var chevUp = 'glyphicon-chevron-up';
                          var $div = $( '<div class="repeater-list-heading"><span class="glyphicon rlc"></span></div>' );
              Severity: Major
              Found in gecoscc/static/js/libs/fuelux.js - About 3 hrs to fix

                Function populate has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            populate: function populate( $el, isBackgroundProcess ) {
                                var self = this;
                
                                // populate was initiated based on clicking overflow link
                                var isOverflow = $el.hasClass( 'tree-overflow' );
                Severity: Major
                Found in gecoscc/static/js/libs/fuelux.js - About 3 hrs to fix

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

                              $.fn.repeater.Constructor.prototype.list_createItemActions = function listCreateItemActions() {
                                  var actionsHtml = '';
                                  var self = this;
                                  var i;
                                  var length;
                  Severity: Major
                  Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                                        if (
                                            ( year > from.year || ( year === from.year && month > from.month ) || ( year === from.year && month === from.month && date >= from.date ) ) &&
                                            ( year < to.year || ( year === to.year && month < to.month ) || ( year === to.year && month === to.month && date <= to.date ) )
                                        ) {
                                            return true;
                    Severity: Critical
                    Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                      Function listSetSelectedItems has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  $.fn.repeater.Constructor.prototype.list_setSelectedItems = function listSetSelectedItems( itms, force ) {
                                      var selectable = this.viewOptions.list_selectable;
                                      var self = this;
                                      var data;
                                      var i;
                      Severity: Major
                      Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                        Function setState has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    setState: function() {
                                        var canMovePrev = ( this.currentStep > 1 ); //remember, steps index is 1 based...
                                        var isFirstStep = ( this.currentStep === 1 );
                                        var isLastStep = ( this.currentStep === this.numSteps );
                        
                        
                        Severity: Major
                        Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

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

                                  var Datepicker = function( element, options ) {
                                      this.$element = $( element );
                                      this.options = $.extend( true, {}, $.fn.datepicker.defaults, options );
                          
                                      this.$calendar = this.$element.find( '.datepicker-calendar' );
                          Severity: Major
                          Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                            Function listFrozenOptionsInitialize has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        $.fn.repeater.Constructor.prototype.list_frozenOptionsInitialize = function listFrozenOptionsInitialize() {
                                            var $checkboxes = this.$element.find( '.frozen-column-wrapper .checkbox-inline' );
                                            var $headerCheckbox = this.$element.find( '.header-checkbox .checkbox-custom' );
                                            var $everyTable = this.$element.find( '.repeater-list table' );
                                            var self = this;
                            Severity: Major
                            Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

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

                                          placeItems: function placeItems() {
                                              var items;
                                              var index;
                                              var $neighbor;
                                              var isInternal;
                              Severity: Major
                              Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

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

                                            parseDate: function( date ) {
                                                var self = this;
                                                var BAD_DATE = new Date( NaN );
                                                var dt, isoExp, momentParse, momentParseWithFormat, tryMomentParseAll, month, parts, use;
                                
                                
                                Severity: Major
                                Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                                  Function keypress has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              keypress: function( e ) {
                                                  var ENTER = 13;
                                                  //var TAB = 9;
                                                  var ESC = 27;
                                                  var LEFT = 37;
                                  Severity: Major
                                  Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                                    Function renderItems has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                renderItems: function renderItems( viewTypeObj, data, callback ) {
                                                    if ( !viewTypeObj.render ) {
                                                        if ( viewTypeObj.before ) {
                                                            var addBefore = viewTypeObj.before.call( this, {
                                                                container: this.$canvas,
                                    Severity: Major
                                    Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                                      Function Scheduler has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              var Scheduler = function Scheduler( element, options ) {
                                                  var self = this;
                                      
                                                  this.$element = $( element );
                                                  this.options = $.extend( {}, $.fn.scheduler.defaults, options );
                                      Severity: Major
                                      Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

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

                                                    $.fn.repeater.Constructor.prototype.thumbnail_setSelectedItems = function( items, force ) {
                                                        var selectable = this.viewOptions.thumbnail_selectable;
                                                        var self = this;
                                                        var i, $item, l, n;
                                        
                                        
                                        Severity: Minor
                                        Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

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

                                                  var Spinbox = function Spinbox( element, options ) {
                                                      this.$element = $( element );
                                                      this.$element.find( '.btn' ).on( 'click', function( e ) {
                                                          //keep spinbox from submitting if they forgot to say type="button" on their spinner buttons
                                                          e.preventDefault();
                                          Severity: Minor
                                          Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

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

                                                        getDataOptions: function getDataOptions( opts ) {
                                                            var options = opts || {};
                                                            if ( options.pageIncrement !== undefined ) {
                                                                if ( options.pageIncrement === null ) {
                                                                    this.currentPage = 0;
                                            Severity: Minor
                                            Found in gecoscc/static/js/libs/fuelux.js - About 2 hrs to fix

                                              Function addItems has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                          addItems: function addItems() {
                                                              var self = this;
                                                              var items;
                                                              var index;
                                                              var isInternal;
                                              Severity: Minor
                                              Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                            render: function render( opts ) {
                                                                this.disable();
                                                
                                                                var viewChanged = false;
                                                                var viewTypeObj = $.fn.repeater.viewTypes[ this.viewType ] || {};
                                                Severity: Minor
                                                Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                  Function pagination has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                              pagination: function pagination( data ) {
                                                                  this.$primaryPaging.removeClass( 'active' );
                                                                  this.$secondaryPaging.removeClass( 'active' );
                                                  
                                                                  var totalPages = data.pages;
                                                  Severity: Minor
                                                  Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                    Function resize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                                resize: function resize() {
                                                                    var staticHeight = ( this.viewOptions.staticHeight === -1 ) ? this.$element.attr( 'data-staticheight' ) : this.viewOptions.staticHeight;
                                                                    var viewTypeObj = {};
                                                                    var height;
                                                                    var viewportMargins;
                                                    Severity: Minor
                                                    Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                      Function renderRow has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                              var renderRow = function renderRow( $tbody, rows, index ) {
                                                                  var $row = $( '<tr></tr>' );
                                                      
                                                                  if ( this.viewOptions.list_selectable ) {
                                                                      $row.data( 'item_data', rows[ index ] );
                                                      Severity: Minor
                                                      Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                        Function fetchData has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                    fetchData: function( force ) {
                                                                        var load = $( '<div class="infinitescroll-load"></div>' );
                                                                        var self = this;
                                                                        var moreBtn;
                                                        
                                                        
                                                        Severity: Minor
                                                        Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                          Function onClickRowRepeaterList has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                                  var onClickRowRepeaterList = function onClickRowRepeaterList( repeater ) {
                                                                      var isMulti = repeater.viewOptions.list_selectable === 'multi';
                                                                      var isActions = repeater.viewOptions.list_actions;
                                                                      var $repeater = repeater.$element;
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                            Function renderThead has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                    var renderThead = function renderThead( $table, data ) {
                                                                        var columns = data.columns || [];
                                                                        var $thead = $table.find( 'thead' );
                                                                        var i;
                                                                        var length;
                                                            Severity: Minor
                                                            Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                      var sizeColumns = function sizeColumns( $tr ) {
                                                                          var automaticallyGeneratedWidths = [];
                                                                          var self = this;
                                                                          var i;
                                                                          var length;
                                                              Severity: Minor
                                                              Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                renderItem: function( helpers ) {
                                                                                    var selectable = this.viewOptions.thumbnail_selectable;
                                                                                    var selected = 'selected';
                                                                                    var self = this;
                                                                                    var $thumbnail = $( fillTemplate( helpers.subset[ helpers.index ], this.viewOptions.thumbnail_template ) );
                                                                Severity: Minor
                                                                Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                              repeatIntervalSelectChanged: function repeatIntervalSelectChanged( e, data ) {
                                                                                  var selectedItem, val, txt;
                                                                  
                                                                                  if ( !data ) {
                                                                                      selectedItem = this.$repeatIntervalSelect.selectlist( 'selectedItem' );
                                                                  Severity: Minor
                                                                  Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                setRestrictedDates: function( restricted ) {
                                                                                    var parsed = [];
                                                                                    var self = this;
                                                                                    var i, l;
                                                                    
                                                                    
                                                                    Severity: Minor
                                                                    Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                  $.fn.repeater.Constructor.prototype.list_positionColumns = function listPositionColumns() {
                                                                                      var $wrapper = this.$element.find( '.repeater-canvas' );
                                                                                      var scrollTop = $wrapper.scrollTop();
                                                                                      var scrollLeft = $wrapper.scrollLeft();
                                                                                      var frozenEnabled = this.viewOptions.list_frozenColumns || this.viewOptions.list_selectable === 'multi';
                                                                      Severity: Minor
                                                                      Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                    discloseAll: function discloseAll() {
                                                                                        var self = this;
                                                                        
                                                                                        //first time
                                                                                        if ( typeof self.$element.data( 'disclosures' ) === 'undefined' ) {
                                                                        Severity: Minor
                                                                        Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                  var Pillbox = function Pillbox( element, options ) {
                                                                                      this.$element = $( element );
                                                                                      this.$moreCount = this.$element.find( '.pillbox-more-count' );
                                                                                      this.$pillGroup = this.$element.find( '.pill-group' );
                                                                                      this.$addItem = this.$element.find( '.pillbox-add-item' );
                                                                          Severity: Minor
                                                                          Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                            before: function( helpers ) {
                                                                                                var alignment = this.viewOptions.thumbnail_alignment;
                                                                                                var $cont = this.$canvas.find( '.repeater-thumbnail-cont' );
                                                                                                var data = helpers.data;
                                                                                                var response = {};
                                                                            Severity: Minor
                                                                            Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                      var Selectlist = function( element, options ) {
                                                                                          this.$element = $( element );
                                                                                          this.options = $.extend( {}, $.fn.selectlist.defaults, options );
                                                                              
                                                                              
                                                                              
                                                                              Severity: Minor
                                                                              Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                            itemClicked: function itemClicked( e ) {
                                                                                                var $target = $( e.target );
                                                                                                var $item;
                                                                                
                                                                                                e.preventDefault();
                                                                                Severity: Minor
                                                                                Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                              truncate: function truncate( enable ) {
                                                                                                  var self = this;
                                                                                  
                                                                                                  this.$element.removeClass( 'truncate' );
                                                                                                  this.$addItemWrap.removeClass( 'truncated' );
                                                                                  Severity: Minor
                                                                                  Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                addSteps: function( index ) {
                                                                                                    var items = [].slice.call( arguments ).slice( 1 );
                                                                                                    var $steps = this.$element.find( '.steps' );
                                                                                                    var $stepContent = this.$element.find( '.step-content' );
                                                                                                    var i, l, $pane, $startPane, $startStep, $step;
                                                                                    Severity: Minor
                                                                                    Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                  $.fn.repeater.Constructor.prototype.list_setFrozenColumns = function listSetFrozenColumns() {
                                                                                                      var frozenTable = this.$canvas.find( '.table-frozen' );
                                                                                                      var $wrapper = this.$element.find( '.repeater-canvas' );
                                                                                                      var $table = this.$element.find( '.repeater-list .repeater-list-wrapper > table' );
                                                                                                      var repeaterWrapper = this.$element.find( '.repeater-list' );
                                                                                      Severity: Minor
                                                                                      Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                var Picker = function Picker( element, options ) {
                                                                                                    var self = this;
                                                                                                    this.$element = $( element );
                                                                                                    this.options = $.extend( {}, $.fn.picker.defaults, options );
                                                                                        
                                                                                        
                                                                                        Severity: Minor
                                                                                        Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                  var Placard = function Placard( element, options ) {
                                                                                                      var self = this;
                                                                                                      this.$element = $( element );
                                                                                                      this.options = $.extend( {}, $.fn.placard.defaults, options );
                                                                                          
                                                                                          
                                                                                          Severity: Minor
                                                                                          Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                            var selectItem = function selectItem( $itm, slct, index ) {
                                                                                                                var $frozenCols;
                                                                                            
                                                                                                                var select = ( slct !== undefined ) ? slct : true;
                                                                                                                if ( select ) {
                                                                                            Severity: Minor
                                                                                            Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                          removeSteps: function( index, howMany ) {
                                                                                                              var action = 'nextAll';
                                                                                                              var i = 0;
                                                                                                              var $steps = this.$element.find( '.steps' );
                                                                                                              var $stepContent = this.$element.find( '.step-content' );
                                                                                              Severity: Minor
                                                                                              Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                            enable: function enable() {
                                                                                                                var viewTypeObj = $.fn.repeater.viewTypes[ this.viewType ] || {};
                                                                                                
                                                                                                                this.$search.search( 'enable' );
                                                                                                                this.$filters.selectlist( 'enable' );
                                                                                                Severity: Minor
                                                                                                Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                              infiniteScrolling: function infiniteScrolling( enable, opts ) {
                                                                                                                  var footer = this.$element.find( '.repeater-footer' );
                                                                                                                  var viewport = this.$element.find( '.repeater-viewport' );
                                                                                                                  var options = opts || {};
                                                                                                  
                                                                                                  
                                                                                                  Severity: Minor
                                                                                                  Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                                setValue: function setValue( options ) {
                                                                                                                    var startTime = {};
                                                                                                                    var startDateTime, startDate, startTimeISO8601, timeOffset, utcStartHours;
                                                                                                    
                                                                                                                    // TIME
                                                                                                    Severity: Minor
                                                                                                    Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                                      before: function before( helpers ) {
                                                                                                                          var $listContainer = helpers.container.find( '.repeater-list' );
                                                                                                                          var self = this;
                                                                                                                          var $table;
                                                                                                      
                                                                                                      
                                                                                                      Severity: Minor
                                                                                                      Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                                    setUtcTime: function setUtcTime( day, time, offset ) {
                                                                                                                        var dateSplit = day.split( '-' );
                                                                                                                        var timeSplit = time.split( ':' );
                                                                                                        
                                                                                                                        function z( n ) {
                                                                                                        Severity: Minor
                                                                                                        Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

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

                                                                                                                  var Wizard = function( element, options ) {
                                                                                                                      this.$element = $( element );
                                                                                                                      this.options = $.extend( {}, $.fn.wizard.defaults, options );
                                                                                                                      this.options.disablePreviousStep = ( this.$element.attr( 'data-restrict' ) === 'previous' ) ? true : this.options.disablePreviousStep;
                                                                                                                      this.currentStep = this.options.selectedItem.step;
                                                                                                          Severity: Minor
                                                                                                          Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                                                                            Function onClickRepeaterList has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                            $div.on( 'click.fu.repeaterList', function onClickRepeaterList() {
                                                                                                                                if ( !self.isDisabled ) {
                                                                                                                                    self.list_sortProperty = ( typeof sortable === 'string' ) ? sortable : columns[ index ].property;
                                                                                                                                    if ( $div.hasClass( 'sorted' ) ) {
                                                                                                                                        if ( $span.hasClass( chevUp ) ) {
                                                                                                            Severity: Minor
                                                                                                            Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                                                                              Function renderWheel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                          renderWheel: function( date ) {
                                                                                                                              var month = date.getMonth();
                                                                                                                              var $monthUl = this.$wheelsMonth.find( 'ul' );
                                                                                                                              var year = date.getFullYear();
                                                                                                                              var $yearUl = this.$wheelsYear.find( 'ul' );
                                                                                                              Severity: Minor
                                                                                                              Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                                                                                Function selectItem has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                            selectTreeNode: function selectItem( clickedElement, nodeType ) {
                                                                                                                                var clicked = {}; // object for clicked element
                                                                                                                                clicked.$element = $( clickedElement );
                                                                                                                
                                                                                                                                var selected = {}; // object for selected elements
                                                                                                                Severity: Minor
                                                                                                                Found in gecoscc/static/js/libs/fuelux.js - About 1 hr to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                                                  if ( subset[ propsToRepeatOn[ prop ] ] !== undefined ) {
                                                                                                                                                      subset = subset[ propsToRepeatOn[ prop ] ];
                                                                                                                                                  } else {
                                                                                                                                                      subset = [];
                                                                                                                                                      logWarn( 'WARNING: Repeater unable to find property to iterate renderItem on.' );
                                                                                                                  Severity: Major
                                                                                                                  Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                                if ( e.which === DOWN ) {
                                                                                                                                                    $selected = this.$dropMenu.find( 'li:not(.hidden):first' );
                                                                                                                                                } else {
                                                                                                                                                    $selected = this.$dropMenu.find( 'li:not(.hidden):last' );
                                                                                                                                                }
                                                                                                                    Severity: Major
                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                          if ( recur.BYMONTHDAY ) {
                                                                                                                                              $repeatYearlyDate = this.$element.find( '.repeat-yearly-date' );
                                                                                                                                              $repeatYearlyDate.find( 'input' ).addClass( 'checked' ).prop( 'checked', true );
                                                                                                                                              $repeatYearlyDate.find( 'label.radio-custom' ).addClass( 'checked' );
                                                                                                                                              if ( recur.BYMONTH ) {
                                                                                                                      Severity: Major
                                                                                                                      Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                                    if ( $item.find( '.pillbox-list-edit' ).length ) {
                                                                                                                                                        return false;
                                                                                                                                                    }
                                                                                                                        Severity: Major
                                                                                                                        Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                          Open

                                                                                                                                                      for ( i = 0; i < commaPatternSplit.length; i++ ) {
                                                                                                                                                          el.find( 'input[data-value="' + commaPatternSplit[ i ] + '"]' ).prop( 'checked', true ).parent().addClass( 'active' );
                                                                                                                                                      }
                                                                                                                          Severity: Major
                                                                                                                          Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                                            if ( parts ) {
                                                                                                                                                                month = parseInt( parts[ 2 ], 10 );
                                                                                                                                                                dt = new Date( parts[ 1 ], month - 1, parts[ 3 ] );
                                                                                                                                                                if ( month === ( dt.getMonth() + 1 ) ) {
                                                                                                                                                                    return dt;
                                                                                                                            Severity: Major
                                                                                                                            Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                                          if ( previousStage !== stage ) {
                                                                                                                                                              $td.addClass( 'first' );
                                                                                                                                                          }
                                                                                                                              Severity: Major
                                                                                                                              Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                                            if ( lastStage !== stage ) {
                                                                                                                                                                $td.addClass( 'last' );
                                                                                                                                                            }
                                                                                                                                Severity: Major
                                                                                                                                Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                          if ( recur.BYSETPOS ) {
                                                                                                                                                              $repeatMonthlyDay.find( '.month-day-pos' ).selectlist( 'selectByValue', recur.BYSETPOS );
                                                                                                                                                          }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                                if ( e.which === DOWN ) {
                                                                                                                                                                    $selected = $selected.next( ':not(.hidden)' );
                                                                                                                                                                } else {
                                                                                                                                                                    $selected = $selected.prev( ':not(.hidden)' );
                                                                                                                                                                }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js - About 45 mins to fix

                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                      Open

                                                                                                                                                      if (
                                                                                                                                                          ( $.isFunction( window.moment ) || ( typeof moment !== 'undefined' && $.isFunction( moment ) ) ) &&
                                                                                                                                                          $.isPlainObject( this.options.momentConfig ) &&
                                                                                                                                                          ( typeof this.options.momentConfig.culture === 'string' && typeof this.options.momentConfig.format === 'string' )
                                                                                                                                                      ) {
                                                                                                                                      Severity: Major
                                                                                                                                      Found in gecoscc/static/js/libs/fuelux.js - About 40 mins to fix

                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                        Open

                                                                                                                                                                } else if ( curYear < nowYear || ( curYear === nowYear && curMonth < nowMonth ) ||
                                                                                                                                                                    ( curYear === nowYear && curMonth === nowMonth && curDate < nowDate ) ) {
                                                                                                                                                                    $td.addClass( 'past' );
                                                                                                                                                                    if ( !this.options.allowPastDates ) {
                                                                                                                                                                        $td.addClass( 'restricted' ).attr( 'title', this.restrictedText );
                                                                                                                                        Severity: Major
                                                                                                                                        Found in gecoscc/static/js/libs/fuelux.js - About 40 mins to fix

                                                                                                                                          Function renderColumn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                  var renderColumn = function renderColumn( $row, rows, rowIndex, columns, columnIndex ) {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in gecoscc/static/js/libs/fuelux.js - About 35 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                            return true;
                                                                                                                                            Severity: Major
                                                                                                                                            Found in gecoscc/static/js/libs/fuelux.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                              return new Date( NaN );
                                                                                                                                              Severity: Major
                                                                                                                                              Found in gecoscc/static/js/libs/fuelux.js - About 30 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                                                return dt;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in gecoscc/static/js/libs/fuelux.js - About 30 mins to fix

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                              return false;
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in gecoscc/static/js/libs/fuelux.js - About 30 mins to fix

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

                                                                                                                                                                isExternalClick: function isExternalClick( e ) {
                                                                                                                                                                    var el = this.$element.get( 0 );
                                                                                                                                                                    var exceptions = this.options.externalClickExceptions || [];
                                                                                                                                                                    var $originEl = $( e.target );
                                                                                                                                                                    var i, l;
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 day to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8272..8290

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

                                                                                                                                                    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

                                                                                                                                                                isExternalClick: function isExternalClick( e ) {
                                                                                                                                                                    var el = this.$element.get( 0 );
                                                                                                                                                                    var exceptions = this.options.externalClickExceptions || [];
                                                                                                                                                                    var $originEl = $( e.target );
                                                                                                                                                                    var i, l;
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 day to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1833..1851

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

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                            $.fn.pillbox = function pillbox( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function set() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 day to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6018..6037

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

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                            $.fn.repeater = function fnrepeater( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function eachThis() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 day to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5080..5099

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

                                                                                                                                                    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

                                                                                                                                                            $.fn.picker = function picker( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3649..3668
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8043..8062

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

                                                                                                                                                    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

                                                                                                                                                            $.fn.tree = function tree( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8043..8062
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8319..8338

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

                                                                                                                                                    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

                                                                                                                                                            $.fn.scheduler = function scheduler( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3649..3668
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8319..8338

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

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

                                                                                                                                                            $.fn.combobox = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.search = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.wizard = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.datepicker = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.loader = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.placard = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.infinitescroll = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190

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

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

                                                                                                                                                            $.fn.selectlist = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.checkbox = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2136..2155
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

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

                                                                                                                                                            $.fn.radio = function( option ) {
                                                                                                                                                                var args = Array.prototype.slice.call( arguments, 1 );
                                                                                                                                                                var methodReturn;
                                                                                                                                                    
                                                                                                                                                                var $set = this.each( function() {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 9 other locations - About 7 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 177..196
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 524..543
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1331..1350
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1588..1607
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1923..1942
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2342..2361
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2622..2641
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4171..4190
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4364..4383

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

                                                                                                                                                    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.$nextBtn.is( ':focus' ) ) {
                                                                                                                                                                        var firstFormField = this.$element.find( '.active' ).find( 'input, select, textarea' )[ 0 ];
                                                                                                                                                    
                                                                                                                                                                        if ( typeof firstFormField !== 'undefined' ) {
                                                                                                                                                                            // allow user to start typing immediately instead of having to click on the form field.
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 5 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4087..4098

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

                                                                                                                                                    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.$prevBtn.is( ':focus' ) ) {
                                                                                                                                                                        var firstFormField = this.$element.find( '.active' ).find( 'input, select, textarea' )[ 0 ];
                                                                                                                                                    
                                                                                                                                                                        if ( typeof firstFormField !== 'undefined' ) {
                                                                                                                                                                            // allow user to start typing immediately instead of having to click on the form field.
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 5 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4119..4130

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

                                                                                                                                                    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

                                                                                                                                                                removeByText: function removeByText() {
                                                                                                                                                                    var text = [].slice.call( arguments ).slice( 0 );
                                                                                                                                                                    var self = this;
                                                                                                                                                    
                                                                                                                                                                    $.each( text, function doRemove( i, matchingText ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 4 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4915..4927

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

                                                                                                                                                    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

                                                                                                                                                                removeByValue: function removeByValue() {
                                                                                                                                                                    var values = [].slice.call( arguments ).slice( 0 );
                                                                                                                                                                    var self = this;
                                                                                                                                                    
                                                                                                                                                                    $.each( values, function doRemove( i, val ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 4 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4929..4941

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

                                                                                                                                                    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

                                                                                                                                                                setDisabledState: function( element, disabled ) {
                                                                                                                                                                    var $chk = element;
                                                                                                                                                                    var $lbl = this.$label;
                                                                                                                                                    
                                                                                                                                                                    if ( disabled ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 4 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2081..2094

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

                                                                                                                                                    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

                                                                                                                                                                setDisabledState: function( element, disabled ) {
                                                                                                                                                                    var $radio = element;
                                                                                                                                                                    var $lbl = this.$label;
                                                                                                                                                    
                                                                                                                                                                    if ( disabled ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 4 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 110..123

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

                                                                                                                                                    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

                                                                                                                                                                prev: function() {
                                                                                                                                                                    var month = this.$headerTitle.attr( 'data-month' );
                                                                                                                                                                    var year = this.$headerTitle.attr( 'data-year' );
                                                                                                                                                                    month--;
                                                                                                                                                                    if ( month < 0 ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 927..941

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

                                                                                                                                                    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

                                                                                                                                                                next: function() {
                                                                                                                                                                    var month = this.$headerTitle.attr( 'data-month' );
                                                                                                                                                                    var year = this.$headerTitle.attr( 'data-year' );
                                                                                                                                                                    month++;
                                                                                                                                                                    if ( month > 11 ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1046..1060

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

                                                                                                                                                    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

                                                                                                                                                                destroy: function destroy() {
                                                                                                                                                                    this.$element.remove();
                                                                                                                                                                    // any external bindings
                                                                                                                                                                    // [none]
                                                                                                                                                                    // set input value attrbute
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2234..2246

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

                                                                                                                                                    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

                                                                                                                                                                destroy: function() {
                                                                                                                                                                    this.$element.remove();
                                                                                                                                                                    // any external bindings
                                                                                                                                                                    // [none]
                                                                                                                                                                    // set input value attrbute
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2818..2830

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

                                                                                                                                                    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

                                                                                                                                                                setInitialState: function() {
                                                                                                                                                                    var $radio = this.$radio;
                                                                                                                                                                    var $lbl = this.$label;
                                                                                                                                                    
                                                                                                                                                                    // get current state of input
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 71..82

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 94.

                                                                                                                                                    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

                                                                                                                                                                setInitialState: function() {
                                                                                                                                                                    var $chk = this.$chk;
                                                                                                                                                                    var $lbl = this.$label;
                                                                                                                                                    
                                                                                                                                                                    // get current state of input
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2030..2041

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

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

                                                                                                                                                            $( document ).on( 'mousedown.fu.scheduler.data-api', '[data-initialize=scheduler]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.scheduler' );
                                                                                                                                                                if ( !$control.data( 'fu.scheduler' ) ) {
                                                                                                                                                                    $control.scheduler( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'mousedown.fu.selectlist.data-api', '[data-initialize=selectlist]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.selectlist' );
                                                                                                                                                                if ( !$control.data( 'fu.selectlist' ) ) {
                                                                                                                                                                    $control.selectlist( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'mouseover.fu.wizard.data-api', '[data-initialize=wizard]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.wizard' );
                                                                                                                                                                if ( !$control.data( 'fu.wizard' ) ) {
                                                                                                                                                                    $control.wizard( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'mousedown.fu.datepicker.data-api', '[data-initialize=datepicker]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.datepicker' );
                                                                                                                                                                if ( !$control.data( 'datepicker' ) ) {
                                                                                                                                                                    $control.datepicker( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'focus.fu.placard.data-api', '[data-initialize=placard]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.placard' );
                                                                                                                                                                if ( !$control.data( 'fu.placard' ) ) {
                                                                                                                                                                    $control.placard( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'mousedown.fu.spinbox.data-api', '[data-initialize=spinbox]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.spinbox' );
                                                                                                                                                                if ( !$control.data( 'fu.spinbox' ) ) {
                                                                                                                                                                    $control.spinbox( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'mousedown.fu.combobox.data-api', '[data-initialize=combobox]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.combobox' );
                                                                                                                                                                if ( !$control.data( 'fu.combobox' ) ) {
                                                                                                                                                                    $control.combobox( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( document ).on( 'focus.fu.picker.data-api', '[data-initialize=picker]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.picker' );
                                                                                                                                                                if ( !$control.data( 'fu.picker' ) ) {
                                                                                                                                                                    $control.picker( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2379..2384
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081

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

                                                                                                                                                            $( document ).on( 'mousedown.fu.search.data-api', '[data-initialize=search]', function( e ) {
                                                                                                                                                                var $control = $( e.target ).closest( '.search' );
                                                                                                                                                                if ( !$control.data( 'fu.search' ) ) {
                                                                                                                                                                    $control.search( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 8 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 585..590
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1375..1380
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1963..1968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2657..2662
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3083..3088
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4209..4214
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8076..8081
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8357..8362

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=combobox]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( !$this.data( 'fu.combobox' ) ) {
                                                                                                                                                                        $this.combobox( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 217..224
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1620..1627
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2177..2184
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2665..2672
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3091..3098

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=spinbox]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( !$this.data( 'fu.spinbox' ) ) {
                                                                                                                                                                        $this.spinbox( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 217..224
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 593..600
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1620..1627
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2177..2184
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2665..2672

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=radio]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( !$this.data( 'fu.radio' ) ) {
                                                                                                                                                                        $this.radio( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 217..224
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 593..600
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1620..1627
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2665..2672
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3091..3098

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=selectlist]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( !$this.data( 'fu.selectlist' ) ) {
                                                                                                                                                                        $this.selectlist( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 217..224
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 593..600
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1620..1627
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2177..2184
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3091..3098

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=checkbox]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( !$this.data( 'fu.checkbox' ) ) {
                                                                                                                                                                        $this.checkbox( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 593..600
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1620..1627
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2177..2184
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2665..2672
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3091..3098

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=loader]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( !$this.data( 'fu.loader' ) ) {
                                                                                                                                                                        $this.loader( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 217..224
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 593..600
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2177..2184
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2665..2672
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3091..3098

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

                                                                                                                                                    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

                                                                                                                                                            $( document ).on( 'mouseover.fu.checkbox.data-api', '[data-initialize=checkbox]', function( e ) {
                                                                                                                                                                var $control = $( e.target );
                                                                                                                                                                if ( !$control.data( 'fu.checkbox' ) ) {
                                                                                                                                                                    $control.checkbox( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2169..2174

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 77.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                            $( document ).on( 'mouseover.fu.radio.data-api', '[data-initialize=radio]', function( e ) {
                                                                                                                                                                var $control = $( e.target );
                                                                                                                                                                if ( !$control.data( 'fu.radio' ) ) {
                                                                                                                                                                    $control.radio( $control.data() );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 209..214

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 77.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if (jQuery.type( self.treeitemTemplate ) === "undefined") {
                                                                                                                                                                        self.treeitemTemplate = self.$element.find( '[data-template=treeitem]:eq(0)' ).clone().removeClass( 'hide hidden' ).removeData( 'template' ).removeAttr( 'data-template' );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3228..3230

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 77.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if (jQuery.type( self.treeoverflowTemplate ) === "undefined") {
                                                                                                                                                                        self.treeoverflowTemplate = self.$element.find( '[data-template=treeoverflow]:eq(0)' ).clone().removeClass( 'hide hidden' ).removeData( 'template' ).removeAttr( 'data-template' );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3225..3227

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 77.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=placard]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( $this.data( 'fu.placard' ) ) return;
                                                                                                                                                                    $this.placard( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2387..2393
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4217..4223
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8084..8090
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8365..8371

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=search]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( $this.data( 'fu.search' ) ) return;
                                                                                                                                                                    $this.search( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1971..1977
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4217..4223
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8084..8090
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8365..8371

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=scheduler]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( $this.data( 'scheduler' ) ) return;
                                                                                                                                                                    $this.scheduler( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1971..1977
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2387..2393
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4217..4223
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8365..8371

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=picker]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( $this.data( 'fu.picker' ) ) return;
                                                                                                                                                                    $this.picker( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1971..1977
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2387..2393
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4217..4223
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8084..8090

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

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

                                                                                                                                                            $( function() {
                                                                                                                                                                $( '[data-initialize=wizard]' ).each( function() {
                                                                                                                                                                    var $this = $( this );
                                                                                                                                                                    if ( $this.data( 'fu.wizard' ) ) return;
                                                                                                                                                                    $this.wizard( $this.data() );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1971..1977
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2387..2393
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8084..8090
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8365..8371

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

                                                                                                                                                    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 ( force === true || selectable === 'multi' ) {
                                                                                                                                                                        l = items.length;
                                                                                                                                                                    } else if ( selectable ) {
                                                                                                                                                                        l = ( items.length > 0 ) ? 1 : 0;
                                                                                                                                                                    } else {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6204..6210

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

                                                                                                                                                    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 ( force === true || selectable === 'multi' ) {
                                                                                                                                                                        length = items.length;
                                                                                                                                                                    } else if ( selectable ) {
                                                                                                                                                                        length = ( items.length > 0 ) ? 1 : 0;
                                                                                                                                                                    } else {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 7160..7166

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

                                                                                                                                                    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

                                                                                                                                                                            ( year > from.year || ( year === from.year && month > from.month ) || ( year === from.year && month === from.month && date >= from.date ) ) &&
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 912..912

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

                                                                                                                                                    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

                                                                                                                                                                            ( year < to.year || ( year === to.year && month < to.month ) || ( year === to.year && month === to.month && date <= to.date ) )
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 911..911

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

                                                                                                                                                    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

                                                                                                                                                            function styleNodeDeselected( $element, $icon ) {
                                                                                                                                                                $element.removeClass( 'tree-selected' );
                                                                                                                                                                if ( $element.data( 'type' ) === 'item' && $icon.hasClass( 'glyphicon-ok' ) ) {
                                                                                                                                                                    $icon.removeClass( 'glyphicon-ok' ).addClass( 'fueluxicon-bullet' ); // make bullet
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3595..3600

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

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    } else {
                                                                                                                                                                        this.$wheels.hide().attr( 'aria-hidden', 'true' );
                                                                                                                                                                        this.$calendar.show().removeAttr( 'aria-hidden', '' );
                                                                                                                                                                        if ( date ) {
                                                                                                                                                                            this.renderMonth( date );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 739..746

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

                                                                                                                                                    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

                                                                                                                                                            function styleNodeSelected( $element, $icon ) {
                                                                                                                                                                $element.addClass( 'tree-selected' );
                                                                                                                                                                if ( $element.data( 'type' ) === 'item' && $icon.hasClass( 'fueluxicon-bullet' ) ) {
                                                                                                                                                                    $icon.removeClass( 'fueluxicon-bullet' ).addClass( 'glyphicon-ok' ); // make checkmark
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3602..3607

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

                                                                                                                                                    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 ( view === 'wheels' ) {
                                                                                                                                                                        this.$calendar.hide().attr( 'aria-hidden', 'true' );
                                                                                                                                                                        this.$wheels.show().removeAttr( 'aria-hidden', '' );
                                                                                                                                                                        if ( date ) {
                                                                                                                                                                            this.renderWheel( date );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 746..753

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

                                                                                                                                                    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 ( self.viewOptions.list_frozenColumns ) {
                                                                                                                                                                                $frozenCols = self.$element.find( '.frozen-column-wrapper tr:nth-child(' + ( index + 1 ) + ')' );
                                                                                                                                                    
                                                                                                                                                                                $frozenCols.addClass( 'selected' );
                                                                                                                                                                                $frozenCols.find( '.repeater-select-checkbox' ).removeClass( 'checked' );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6174..6179

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

                                                                                                                                                    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 ( self.viewOptions.list_frozenColumns || self.viewOptions.list_selectable === 'multi' ) {
                                                                                                                                                                                    $frozenCols = self.$element.find( '.frozen-column-wrapper tr:nth-child(' + ( index + 1 ) + ')' );
                                                                                                                                                    
                                                                                                                                                                                    $frozenCols.addClass( 'selected' );
                                                                                                                                                                                    $frozenCols.find( '.repeater-select-checkbox' ).addClass( 'checked' );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6188..6193

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

                                                                                                                                                    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

                                                                                                                                                                    $monthUl.scrollTop( $monthUl.scrollTop() + ( $monthSelected.position().top - $monthUl.outerHeight() / 2 - $monthSelected.outerHeight( true ) / 2 ) );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1215..1215

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 64.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                            } else if ( value.type === 'overflow' ) {
                                                                                                                                                                                $entity = self.treeoverflowTemplate.clone();
                                                                                                                                                                                $entity.find( '.tree-overflow-name > .tree-label' ).html( value.text || value.name );
                                                                                                                                                                                $entity.data( value );
                                                                                                                                                                            }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3240..3248

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 64.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                            } else if ( value.type === 'item' ) {
                                                                                                                                                                                $entity = self.treeitemTemplate.clone();
                                                                                                                                                                                $entity.find( '.tree-item-name > .tree-label' ).html( value.text || value.name );
                                                                                                                                                                                $entity.data( value );
                                                                                                                                                                            } else if ( value.type === 'overflow' ) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3244..3248

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 64.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    $yearUl.scrollTop( $yearUl.scrollTop() + ( $yearSelected.position().top - $yearUl.outerHeight() / 2 - $yearSelected.outerHeight( true ) / 2 ) );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1206..1206

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 64.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                this.$filters.on( 'changed.fu.selectlist', function onFiltersChanged( e, value ) {
                                                                                                                                                                    self.$element.trigger( 'filtered.fu.repeater', value );
                                                                                                                                                                    self.render( {
                                                                                                                                                                        clearInfinite: true,
                                                                                                                                                                        pageIncrement: null
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5251..5257
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5258..5264

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

                                                                                                                                                    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

                                                                                                                                                                this.$search.on( 'canceled.fu.search', function onSearchCanceled( e, value ) {
                                                                                                                                                                    self.$element.trigger( 'canceled.fu.repeater', value );
                                                                                                                                                                    self.render( {
                                                                                                                                                                        clearInfinite: true,
                                                                                                                                                                        pageIncrement: null
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5233..5239
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5251..5257

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

                                                                                                                                                    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

                                                                                                                                                                this.$search.on( 'searched.fu.search cleared.fu.search', function onSearched( e, value ) {
                                                                                                                                                                    self.$element.trigger( 'searchChanged.fu.repeater', value );
                                                                                                                                                                    self.render( {
                                                                                                                                                                        clearInfinite: true,
                                                                                                                                                                        pageIncrement: null
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5233..5239
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5258..5264

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

                                                                                                                                                    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

                                                                                                                                                                yearClicked: function( e ) {
                                                                                                                                                                    this.$wheelsYear.find( '.selected' ).removeClass( 'selected' );
                                                                                                                                                                    $( e.currentTarget ).parent().addClass( 'selected' );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 922..925

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

                                                                                                                                                    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

                                                                                                                                                                monthClicked: function( e ) {
                                                                                                                                                                    this.$wheelsMonth.find( '.selected' ).removeClass( 'selected' );
                                                                                                                                                                    $( e.currentTarget ).parent().addClass( 'selected' );
                                                                                                                                                                },
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1321..1324

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

                                                                                                                                                    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 ( viewTypeObj.before ) {
                                                                                                                                                                            var addBefore = viewTypeObj.before.call( this, {
                                                                                                                                                                                container: this.$canvas,
                                                                                                                                                                                data: data
                                                                                                                                                                            } );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5952..5958

                                                                                                                                                    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

                                                                                                                                                                        if ( viewTypeObj.after ) {
                                                                                                                                                                            var addAfter = viewTypeObj.after.call( this, {
                                                                                                                                                                                container: this.$canvas,
                                                                                                                                                                                data: data
                                                                                                                                                                            } );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5903..5909

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 58.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( isFinite( String( arguments[ 0 ] ) ) && !( arguments[ 0 ] instanceof Array ) ) {
                                                                                                                                                                        items = [].slice.call( arguments ).slice( 1 );
                                                                                                                                                                        index = arguments[ 0 ];
                                                                                                                                                                    } else {
                                                                                                                                                                        items = [].slice.call( arguments ).slice( 0 );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4674..4680

                                                                                                                                                    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

                                                                                                                                                                    if ( isFinite( String( arguments[ 0 ] ) ) && !( arguments[ 0 ] instanceof Array ) ) {
                                                                                                                                                                        items = [].slice.call( arguments ).slice( 1 );
                                                                                                                                                                        index = arguments[ 0 ];
                                                                                                                                                                    } else {
                                                                                                                                                                        items = [].slice.call( arguments ).slice( 0 );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 4585..4591

                                                                                                                                                    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

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

                                                                                                                                                                        for ( i = ( start - 1 ); i > ( start - 11 ); i-- ) {
                                                                                                                                                                            $yearUl.prepend( '<li data-year="' + i + '"><button type="button">' + i + '</button></li>' );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 966..968
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1209..1211

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

                                                                                                                                                                        for ( i = ( start + 1 ); i < ( start + 11 ); i++ ) {
                                                                                                                                                                            $yearUl.append( '<li data-year="' + i + '"><button type="button">' + i + '</button></li>' );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 958..960
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1209..1211

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

                                                                                                                                                                    for ( i = ( year - 10 ); i < ( year + 11 ); i++ ) {
                                                                                                                                                                        $yearUl.append( '<li data-year="' + i + '"><button type="button">' + i + '</button></li>' );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 958..960
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 966..968

                                                                                                                                                    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

                                                                                                                                                                enable: function() {
                                                                                                                                                                    this.$element.removeClass( 'disabled' );
                                                                                                                                                                    this.$input.removeAttr( 'disabled' );
                                                                                                                                                                    this.$button.removeClass( 'disabled' );
                                                                                                                                                                },
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2332..2336

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

                                                                                                                                                    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

                                                                                                                                                                enable: function() {
                                                                                                                                                                    this.$element.removeClass( 'disabled' );
                                                                                                                                                                    this.$input.removeAttr( 'disabled' );
                                                                                                                                                                    this.$button.removeClass( 'disabled' );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 396..400

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

                                                                                                                                                    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.$footer.length > 0 ) {
                                                                                                                                                                        this.$popup.css( 'bottom', '-' + this.$footer.outerHeight( true ) + 'px' );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1905..1907

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

                                                                                                                                                    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.$header.length > 0 ) {
                                                                                                                                                                        this.$popup.css( 'top', '-' + this.$header.outerHeight( true ) + 'px' );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 1 hr to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1909..1911

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

                                                                                                                                                    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.explicit ) {
                                                                                                                                                                        $( document ).on( 'click.fu.picker.externalClick.' + this.clickStamp, $.proxy( this.externalClickListener, this ) );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1915..1917

                                                                                                                                                    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

                                                                                                                                                                    if ( !this.options.explicit ) {
                                                                                                                                                                        $( document ).on( 'click.fu.placard.externalClick.' + this.clickStamp, $.proxy( this.externalClickListener, this ) );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8311..8313

                                                                                                                                                    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

                                                                                                                                                                if ( value > this.options.max ) {
                                                                                                                                                                    if ( this.options.cycle ) {
                                                                                                                                                                        value = this.options.min;
                                                                                                                                                                    } else {
                                                                                                                                                                        value = this.options.max;
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2793..2799

                                                                                                                                                    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

                                                                                                                                                                    if ( val === 'after' ) {
                                                                                                                                                                        this.$endAfter.parent().removeClass( 'hide hidden' ); // jQuery deprecated hide in 3.0. Use hidden instead. Leaving hide here to support previous markup
                                                                                                                                                                        this.$endAfter.parent().attr( 'aria-hidden', 'false' );
                                                                                                                                                                    } else if ( val === 'date' ) {
                                                                                                                                                                        this.$endDate.parent().removeClass( 'hide hidden' ); // jQuery deprecated hide in 3.0. Use hidden instead. Leaving hide here to support previous markup
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 7560..7563

                                                                                                                                                    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

                                                                                                                                                                            if ( this.$nextBtn.is( ':disabled' ) ) {
                                                                                                                                                                                // if you can't focus, go the other way
                                                                                                                                                                                this.$prevBtn.focus();
                                                                                                                                                                            } else {
                                                                                                                                                                                this.$nextBtn.focus();
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5760..5765

                                                                                                                                                    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

                                                                                                                                                                    } else if ( val === 'date' ) {
                                                                                                                                                                        this.$endDate.parent().removeClass( 'hide hidden' ); // jQuery deprecated hide in 3.0. Use hidden instead. Leaving hide here to support previous markup
                                                                                                                                                                        this.$endDate.parent().attr( 'aria-hidden', 'false' );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 7557..7563

                                                                                                                                                    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

                                                                                                                                                                        } else if ( this.$prevBtn.is( ':disabled' ) ) {
                                                                                                                                                                            // if you can't focus, go the other way
                                                                                                                                                                            this.$nextBtn.focus();
                                                                                                                                                                        } else {
                                                                                                                                                                            this.$prevBtn.focus();
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5754..5759

                                                                                                                                                    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

                                                                                                                                                                } else if ( value < this.options.min ) {
                                                                                                                                                                    if ( this.options.cycle ) {
                                                                                                                                                                        value = this.options.max;
                                                                                                                                                                    } else {
                                                                                                                                                                        value = this.options.min;
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 55 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2787..2799

                                                                                                                                                    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

                                                                                                                                                                    if ( checked ) {
                                                                                                                                                                        $chk.prop( 'checked', true );
                                                                                                                                                                        $lbl.addClass( 'checked' );
                                                                                                                                                                        //$container.addClass('checked');
                                                                                                                                                                        $containerToggle.removeClass( 'hide hidden' );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 50 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 99..105

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

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    } else {
                                                                                                                                                                        $chk.prop( 'checked', false );
                                                                                                                                                                        $lbl.removeClass( 'checked' );
                                                                                                                                                                        //$container.removeClass('checked');
                                                                                                                                                                        $containerToggle.addClass( 'hidden' );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 50 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 93..99

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

                                                                                                                                                    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

                                                                                                                                                                destroy: function() {
                                                                                                                                                                    this.$element.remove();
                                                                                                                                                                    // any external bindings
                                                                                                                                                                    // [none]
                                                                                                                                                                    // empty elements to return to original markup
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 50 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1561..1569

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

                                                                                                                                                    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

                                                                                                                                                                destroy: function() {
                                                                                                                                                                    this.$element.remove();
                                                                                                                                                                    // any external bindings
                                                                                                                                                                    // [none]
                                                                                                                                                                    // empty elements to return to original markup
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 50 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2470..2478

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

                                                                                                                                                    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 ( self.viewOptions.list_actions ) {
                                                                                                                                                                                    self.$element.find( '.actions-column-wrapper tr:nth-child(' + ( index + 1 ) + ')' ).addClass( 'selected' );
                                                                                                                                                                                }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 45 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6195..6197

                                                                                                                                                    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

                                                                                                                                                                this.$element.on( 'click.fu.tree', '.tree-overflow', $.proxy( function( ev ) {
                                                                                                                                                                    this.populate( $( ev.currentTarget ) );
                                                                                                                                                                }, this ) );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 45 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3148..3150

                                                                                                                                                    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

                                                                                                                                                                    this.$element.on( 'click.fu.tree', '.tree-branch-name', $.proxy( function( ev ) {
                                                                                                                                                                        this.selectFolder( $( ev.currentTarget ) );
                                                                                                                                                                    }, this ) );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 45 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3137..3139

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                            if ( self.viewOptions.list_actions ) {
                                                                                                                                                                                self.$element.find( '.actions-column-wrapper tr:nth-child(' + ( index + 1 ) + ')' ).removeClass( 'selected' );
                                                                                                                                                                            }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 45 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6181..6183

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                destroy: function() {
                                                                                                                                                                    this.$label.remove();
                                                                                                                                                                    // remove any external bindings
                                                                                                                                                                    // [none]
                                                                                                                                                                    // empty elements to return to original markup
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 2122..2129

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 49.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                destroy: function() {
                                                                                                                                                                    this.$label.remove();
                                                                                                                                                                    // remove any external bindings
                                                                                                                                                                    // [none]
                                                                                                                                                                    // empty elements to return to original markup
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 163..170

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 49.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                this.stamp = new Date().getTime() + ( Math.floor( Math.random() * 100 ) + 1 );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1914..1914
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8310..8310

                                                                                                                                                    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

                                                                                                                                                                    this.$element.find( '.repeater-list table.table-frozen tr' ).each( function eachTR( i ) {
                                                                                                                                                                        $( this ).height( $table.find( 'tr:eq(' + i + ')' ).height() );
                                                                                                                                                                    } );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6443..6445

                                                                                                                                                    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

                                                                                                                                                                    this.clickStamp = new Date().getTime() + ( Math.floor( Math.random() * 100 ) + 1 );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5219..5219
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8310..8310

                                                                                                                                                    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

                                                                                                                                                                    $actionsTable.find( 'tbody tr td:first-child' ).each( function eachFirstChild( i ) {
                                                                                                                                                                        $( this ).outerHeight( $table.find( 'tbody tr:eq(' + i + ') td' ).outerHeight() );
                                                                                                                                                                    } );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6451..6453

                                                                                                                                                    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

                                                                                                                                                                    this.clickStamp = new Date().getTime() + ( Math.floor( Math.random() * 100 ) + 1 );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 2 other locations - About 40 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 1914..1914
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5219..5219

                                                                                                                                                    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

                                                                                                                                                                this.$element.on( 'click.fu.tree', '.tree-branch-name', $.proxy( function( ev ) {
                                                                                                                                                                    this.toggleFolder( ev.currentTarget );
                                                                                                                                                                }, this ) );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3128..3130

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

                                                                                                                                                    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 ( frozenEnabled ) {
                                                                                                                                                                            $wrapper.find( '.frozen-thead-wrapper' ).css( 'left', '0' );
                                                                                                                                                                            $wrapper.find( '.frozen-column-wrapper' ).css( 'left', '0' );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6316..6319

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

                                                                                                                                                    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.$element.on( 'click.fu.tree', '.tree-item', $.proxy( function( ev ) {
                                                                                                                                                                        this.selectItem( ev.currentTarget );
                                                                                                                                                                    }, this ) );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3133..3135

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

                                                                                                                                                    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 ( actionsEnabled ) {
                                                                                                                                                                            $wrapper.find( '.actions-thead-wrapper' ).css( 'right', '0' );
                                                                                                                                                                            $wrapper.find( '.actions-column-wrapper' ).css( 'right', '0' );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 1 other location - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 6312..6315

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

                                                                                                                                                    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

                                                                                                                                                            $.fn.spinbox.noConflict = function noConflict() {
                                                                                                                                                                $.fn.spinbox = old;
                                                                                                                                                                return this;
                                                                                                                                                            };
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5135..5138
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8068..8071
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8350..8353

                                                                                                                                                    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

                                                                                                                                                            $.fn.pillbox.noConflict = function noConflict() {
                                                                                                                                                                $.fn.pillbox = old;
                                                                                                                                                                return this;
                                                                                                                                                            };
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3075..3078
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8068..8071
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8350..8353

                                                                                                                                                    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

                                                                                                                                                            $.fn.scheduler.noConflict = function noConflict() {
                                                                                                                                                                $.fn.scheduler = old;
                                                                                                                                                                return this;
                                                                                                                                                            };
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3075..3078
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5135..5138
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8350..8353

                                                                                                                                                    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

                                                                                                                                                            $.fn.picker.noConflict = function noConflict() {
                                                                                                                                                                $.fn.picker = old;
                                                                                                                                                                return this;
                                                                                                                                                            };
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 3075..3078
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 5135..5138
                                                                                                                                                    gecoscc/static/js/libs/fuelux.js on lines 8068..8071

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 46.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

                                                                                                                                                    There are no issues that match your filters.

                                                                                                                                                    Category
                                                                                                                                                    Status