carolinagc/webcalendar

View on GitHub
public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js

Summary

Maintainability
F
2 yrs
Test Coverage

File application-acfe820e7f1681bfacd0f77c4ee463aa.js has 10792 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.10.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 mo to fix

    Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ajax: function( url, options ) {
    
            // If url is an object, simulate pre-1.5 signature
            if ( typeof url === "object" ) {
                options = url;
    Severity: Major
    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 day to fix

      Function setDocument has 200 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      setDocument = Sizzle.setDocument = function( node ) {
          var doc = node ? node.ownerDocument || node : preferredDoc,
              parent = doc.defaultView;
      
          // If no document and documentElement is available, return
      Severity: Major
      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 day to fix

        Function _generateHTML has 169 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _generateHTML: function(inst) {
                var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
                    controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
                    monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
                    selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
        Severity: Major
        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 6 hrs to fix

          Function _injectTimePicker has 150 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _injectTimePicker: function () {
                      var $dp = this.inst.dpDiv,
                          o = this.inst.settings,
                          tp_inst = this,
                          litem = '',
          Severity: Major
          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 6 hrs to fix

            Function parseTime has 149 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $.datepicker.parseTime = function (timeFormat, timeString, options) {
                    var o = extendRemove(extendRemove({}, $.timepicker._defaults), options || {}),
                        iso8601 = (timeFormat.replace(/\'.*?\'/g, '').indexOf('Z') !== -1);
            
                    // Strict parse requires the timeString to match the timeFormat exactly
            Severity: Major
            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 5 hrs to fix

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

                  parseDate: function (format, value, settings) {
                      if (format == null || value == null) {
                          throw "Invalid arguments";
                      }
              
              
              Severity: Major
              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 5 hrs to fix

                Function _limitMinMaxDateTime has 138 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _limitMinMaxDateTime: function (dp_inst, adjustSliders) {
                            var o = this._defaults,
                                dp_date = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay);
                
                            if (!this._defaults.showTimepicker) {
                Severity: Major
                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 5 hrs to fix

                  Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  jQuery.Callbacks = function( options ) {
                  
                      // Convert options from String-formatted to Object-formatted if needed
                      // (we check in cache first)
                      options = typeof options === "string" ?
                  Severity: Major
                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 5 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if ( event.pageX == null && original.clientX != null ) {
                                    eventDoc = event.target.ownerDocument || document;
                                    doc = eventDoc.documentElement;
                                    body = eventDoc.body;
                    
                    
                    Severity: Critical
                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 5 hrs to fix

                      Function _newInst has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              _newInst: function ($input, opts) {
                                  var tp_inst = new Timepicker(),
                                      inlineSettings = {},
                                      fns = {},
                                      overrides, i;
                      Severity: Major
                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 4 hrs to fix

                        Function support has 119 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        jQuery.support = (function( support ) {
                        
                            var all, a, input, select, fragment, opt, eventName, isSupported, i,
                                div = document.createElement("div");
                        
                        
                        Severity: Major
                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 4 hrs to fix

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

                                  var strictParse = function (f, s, o) {
                          
                                      // pattern for standard and localized AM/PM markers
                                      var getPatternAmpm = function (amNames, pmNames) {
                                          var markers = [];
                          Severity: Major
                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 4 hrs to fix

                            Function defaultPrefilter has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function defaultPrefilter( elem, props, opts ) {
                                /* jshint validthis: true */
                                var prop, value, toggle, tween, hooks, oldfire,
                                    anim = this,
                                    orig = {},
                            Severity: Major
                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

                              Function _onTimeChange has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      _onTimeChange: function () {
                                          if (!this._defaults.showTimepicker) {
                                                              return;
                                          }
                                          var hour = (this.hour_slider) ? this.control.value(this, this.hour_slider, 'hour') : false,
                              Severity: Major
                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

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

                                    trigger: function( event, data, elem, onlyHandlers ) {
                                        var handle, ontype, cur,
                                            bubbleType, special, tmp, i,
                                            eventPath = [ elem || document ],
                                            type = core_hasOwn.call( event, "type" ) ? event.type : event,
                                Severity: Major
                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

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

                                      _doKeyDown: function(event) {
                                          var onSelect, dateStr, sel,
                                              inst = $.datepicker._getInst(event.target),
                                              handled = true,
                                              isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
                                  Severity: Major
                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

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

                                    function Animation( elem, properties, options ) {
                                        var result,
                                            stopped,
                                            index = 0,
                                            length = animationPrefilters.length,
                                    Severity: Major
                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

                                      Function send has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                      send: function( headers, complete ) {
                                      
                                                          // Get a new xhr
                                                          var handle, i,
                                                              xhr = s.xhr();
                                      Severity: Major
                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

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

                                            formatDate: function (format, date, settings) {
                                                if (!date) {
                                                    return "";
                                                }
                                        
                                        
                                        Severity: Major
                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

                                          Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          function Sizzle( selector, context, results, seed ) {
                                              var match, elem, m, nodeType,
                                                  // QSA vars
                                                  i, groups, old, nid, newContext, newSelector;
                                          
                                          
                                          Severity: Major
                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

                                            Function _optionDatepicker has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                $.datepicker._optionDatepicker = function (target, name, value) {
                                                    var inst = this._getInst(target),
                                                        name_clone;
                                                    if (!inst) {
                                                        return null;
                                            Severity: Major
                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 3 hrs to fix

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

                                              function Datepicker() {
                                                  this._curInst = null; // The current instance in use
                                                  this._keyEvent = false; // If the last event was a key event
                                                  this._disabledInputs = []; // List of date picker inputs that have been disabled
                                                  this._datepickerShowing = false; // True if the popup picker is showing , false if not
                                              Severity: Major
                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                Function Timepicker has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    var Timepicker = function () {
                                                        this.regional = []; // Available regional settings, indexed by language code
                                                        this.regional[''] = { // Default regional settings
                                                            currentText: 'Now',
                                                            closeText: 'Done',
                                                Severity: Major
                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                  Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      buildFragment: function( elems, context, scripts, selection ) {
                                                          var j, elem, contains,
                                                              tmp, tag, tbody, wrap,
                                                              l = elems.length,
                                                  
                                                  
                                                  Severity: Major
                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                    Function add has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        add: function( elem, types, handler, data, selector ) {
                                                            var tmp, events, t, handleObjIn,
                                                                special, eventHandle, handleObj,
                                                                handlers, type, namespaces, origType,
                                                                elemData = jQuery._data( elem );
                                                    Severity: Major
                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                      Function matcherFromGroupMatchers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                                                          // A counter to specify which element is currently being matched
                                                          var matcherCachedRuns = 0,
                                                              bySet = setMatchers.length > 0,
                                                              byElement = elementMatchers.length > 0,
                                                      Severity: Major
                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                        Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                function done( status, nativeStatusText, responses, headers ) {
                                                                    var isSuccess, success, error, response, modified,
                                                                        statusText = nativeStatusText;
                                                        
                                                                    // Called once
                                                        Severity: Major
                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                          function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                                              if ( postFilter && !postFilter[ expando ] ) {
                                                                  postFilter = setMatcher( postFilter );
                                                              }
                                                              if ( postFinder && !postFinder[ expando ] ) {
                                                          Severity: Major
                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                $.timepicker.handleRange = function (method, startTime, endTime, options) {
                                                                    options = $.extend({}, {
                                                                        minInterval: 0, // min allowed interval in milliseconds
                                                                        maxInterval: 0, // max allowed interval in milliseconds
                                                                        start: {},      // options for start picker
                                                            Severity: Major
                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                      superMatcher = function( seed, context, xml, results, expandContext ) {
                                                                          var elem, j, matcher,
                                                                              setMatched = [],
                                                                              matchedCount = 0,
                                                                              i = "0",
                                                              Severity: Major
                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                Function _showDatepicker has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    _showDatepicker: function(input) {
                                                                        input = input.target || input;
                                                                        if (input.nodeName.toLowerCase() !== "input") { // find from button/image trigger
                                                                            input = $("input", input.parentNode)[0];
                                                                        }
                                                                Severity: Major
                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                      Deferred: function( func ) {
                                                                          var tuples = [
                                                                                  // action, add listener, listener list, final state
                                                                                  [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                                                                  [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                                                                  Severity: Major
                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                        handleRemote: function(element) {
                                                                          var method, url, data, elCrossDomain, crossDomain, withCredentials, dataType, options;
                                                                    
                                                                          if (rails.fire(element, 'ajax:before')) {
                                                                            elCrossDomain = element.data('cross-domain');
                                                                    Severity: Major
                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                      Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                              "CHILD": function( type, what, argument, first, last ) {
                                                                                  var simple = type.slice( 0, 3 ) !== "nth",
                                                                                      forward = type.slice( -4 ) !== "last",
                                                                                      ofType = what === "of-type";
                                                                      
                                                                      
                                                                      Severity: Major
                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                        Consider simplifying this complex logical expression.
                                                                        Open

                                                                                                if ( forward && useCache ) {
                                                                                                    // Seek `elem` from a previously-cached index
                                                                                                    outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                                                                    cache = outerCache[ type ] || [];
                                                                                                    nodeIndex = cache[0] === dirruns && cache[1];
                                                                        Severity: Critical
                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                              init: function( selector, context, rootjQuery ) {
                                                                                  var match, elem;
                                                                          
                                                                                  // HANDLE: $(""), $(null), $(undefined), $(false)
                                                                                  if ( !selector ) {
                                                                          Severity: Major
                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                            Function domManip has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                domManip: function( args, callback, allowIntersection ) {
                                                                            
                                                                                    // Flatten any nested arrays
                                                                                    args = core_concat.apply( [], args );
                                                                            
                                                                            
                                                                            Severity: Major
                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                              Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                              function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                                                                  var conv2, current, conv, tmp, prev,
                                                                                      converters = {},
                                                                                      // Work with a copy of dataTypes in case we need to modify it for conversion
                                                                                      dataTypes = s.dataTypes.slice();
                                                                              Severity: Major
                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                                Function _generateMonthYearHeader has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                    _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                                                                            secondary, monthNames, monthNamesShort) {
                                                                                
                                                                                        var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
                                                                                            changeMonth = this._get(inst, "changeMonth"),
                                                                                Severity: Major
                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                                      $.datepicker.formatTime = function (format, time, options) {
                                                                                          options = options || {};
                                                                                          options = $.extend({}, $.timepicker._defaults, options);
                                                                                          time = $.extend({
                                                                                              hour: 0,
                                                                                  Severity: Major
                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                                    Function _updateDateTime has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                            _updateDateTime: function (dp_inst) {
                                                                                                dp_inst = this.inst || dp_inst;
                                                                                                var dtTmp = (dp_inst.currentYear > 0?
                                                                                                                new Date(dp_inst.currentYear, dp_inst.currentMonth, dp_inst.currentDay) :
                                                                                                                new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
                                                                                    Severity: Major
                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                                      Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                          remove: function( elem, types, handler, selector, mappedTypes ) {
                                                                                              var j, handleObj, tmp,
                                                                                                  origCount, t, events,
                                                                                                  special, handlers, type,
                                                                                                  namespaces, origType,
                                                                                      Severity: Major
                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

                                                                                        Consider simplifying this complex logical expression.
                                                                                        Open

                                                                                                        if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                                                            ( !handler || handler.guid === handleObj.guid ) &&
                                                                                                            ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                                                                            ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                                                            handlers.splice( j, 1 );
                                                                                        Severity: Critical
                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 2 hrs to fix

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

                                                                                          function internalRemoveData( elem, name, pvt ) {
                                                                                              if ( !jQuery.acceptData( elem ) ) {
                                                                                                  return;
                                                                                              }
                                                                                          
                                                                                          
                                                                                          Severity: Minor
                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                            Function _determineDate has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                                _determineDate: function(inst, date, defaultDate) {
                                                                                                    var offsetNumeric = function(offset) {
                                                                                                            var date = new Date();
                                                                                                            date.setDate(date.getDate() + offset);
                                                                                                            return date;
                                                                                            Severity: Minor
                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                              function internalData( elem, name, data, pvt /* Internal Use Only */ ){
                                                                                                  if ( !jQuery.acceptData( elem ) ) {
                                                                                                      return;
                                                                                                  }
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                function tokenize( selector, parseOnly ) {
                                                                                                    var matched, match, tokens, type,
                                                                                                        soFar, groups, preFilters,
                                                                                                        cached = tokenCache[ selector + " " ];
                                                                                                
                                                                                                
                                                                                                Severity: Minor
                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                  Function select has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                  function select( selector, context, results, seed ) {
                                                                                                      var i, tokens, token, type, find,
                                                                                                          match = tokenize( selector );
                                                                                                  
                                                                                                      if ( !seed ) {
                                                                                                  Severity: Minor
                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                    function matcherFromTokens( tokens ) {
                                                                                                        var checkContext, matcher, j,
                                                                                                            len = tokens.length,
                                                                                                            leadingRelative = Expr.relative[ tokens[0].type ],
                                                                                                            implicitRelative = leadingRelative || Expr.relative[" "],
                                                                                                    Severity: Minor
                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                      Consider simplifying this complex logical expression.
                                                                                                      Open

                                                                                                                  if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                                                                                                      ( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                                                                                                                      ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                                                                                                      !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                                                                                                      
                                                                                                      
                                                                                                      Severity: Critical
                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                        Consider simplifying this complex logical expression.
                                                                                                        Open

                                                                                                                if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
                                                                                                                        $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
                                                                                                                        !$target.hasClass($.datepicker.markerClassName) &&
                                                                                                                        !$target.closest("." + $.datepicker._triggerClass).length &&
                                                                                                                        $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
                                                                                                        Severity: Critical
                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                          function addCombinator( matcher, combinator, base ) {
                                                                                                              var dir = combinator.dir,
                                                                                                                  checkNonElements = base && dir === "parentNode",
                                                                                                                  doneName = done++;
                                                                                                          
                                                                                                          
                                                                                                          Severity: Minor
                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                _attachments: function(input, inst) {
                                                                                                                    var showOn, buttonText, buttonImage,
                                                                                                                        appendText = this._get(inst, "appendText"),
                                                                                                                        isRTL = this._get(inst, "isRTL");
                                                                                                            
                                                                                                            
                                                                                                            Severity: Minor
                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                  stop: function( type, clearQueue, gotoEnd ) {
                                                                                                                      var stopQueue = function( hooks ) {
                                                                                                                          var stop = hooks.stop;
                                                                                                                          delete hooks.stop;
                                                                                                                          stop( gotoEnd );
                                                                                                              Severity: Minor
                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                jQuery.extend = jQuery.fn.extend = function() {
                                                                                                                    var src, copyIsArray, copy, name, options, clone,
                                                                                                                        target = arguments[0] || {},
                                                                                                                        i = 1,
                                                                                                                        length = arguments.length,
                                                                                                                Severity: Minor
                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                      on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                                                                          var type, origFn;
                                                                                                                  
                                                                                                                          // Types can be a map of types/handlers
                                                                                                                          if ( typeof types === "object" ) {
                                                                                                                  Severity: Minor
                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                        val: function( value ) {
                                                                                                                            var ret, hooks, isFunction,
                                                                                                                                elem = this[0];
                                                                                                                    
                                                                                                                            if ( !arguments.length ) {
                                                                                                                    Severity: Minor
                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                          _optionDatepicker: function(target, name, value) {
                                                                                                                              var settings, date, minDate, maxDate,
                                                                                                                                  inst = this._getInst(target);
                                                                                                                      
                                                                                                                              if (arguments.length === 2 && typeof name === "string") {
                                                                                                                      Severity: Minor
                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                        Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                            each: function( obj, callback, args ) {
                                                                                                                                var value,
                                                                                                                                    i = 0,
                                                                                                                                    length = obj.length,
                                                                                                                                    isArray = isArraylike( obj );
                                                                                                                        Severity: Minor
                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                              _possibleChars: function (format) {
                                                                                                                                  var iFormat,
                                                                                                                                      chars = "",
                                                                                                                                      literal = false,
                                                                                                                                      // Check whether a format character is doubled
                                                                                                                          Severity: Minor
                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                            function showHide( elements, show ) {
                                                                                                                                var display, elem, hidden,
                                                                                                                                    values = [],
                                                                                                                                    index = 0,
                                                                                                                                    length = elements.length;
                                                                                                                            Severity: Minor
                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                              function ajaxHandleResponses( s, jqXHR, responses ) {
                                                                                                                                  var firstDataType, ct, finalDataType, type,
                                                                                                                                      contents = s.contents,
                                                                                                                                      dataTypes = s.dataTypes;
                                                                                                                              
                                                                                                                              
                                                                                                                              Severity: Minor
                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                    when: function( subordinate /* , ..., subordinateN */ ) {
                                                                                                                                        var i = 0,
                                                                                                                                            resolveValues = core_slice.call( arguments ),
                                                                                                                                            length = resolveValues.length,
                                                                                                                                
                                                                                                                                
                                                                                                                                Severity: Minor
                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                      access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                                                                                                                          var i = 0,
                                                                                                                                              length = elems.length,
                                                                                                                                              bulk = key == null;
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                        clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                                                                                                                            var destElements, node, clone, i, srcElements,
                                                                                                                                                inPage = jQuery.contains( elem.ownerDocument, elem );
                                                                                                                                    
                                                                                                                                            if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                          _hideDatepicker: function(input) {
                                                                                                                                              var showAnim, duration, postProcess, onClose,
                                                                                                                                                  inst = this._curInst;
                                                                                                                                      
                                                                                                                                              if (!inst || (input && inst !== $.data(input, PROP_NAME))) {
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                            dispatch: function( event ) {
                                                                                                                                        
                                                                                                                                                // Make a writable jQuery.Event from the native event object
                                                                                                                                                event = jQuery.event.fix( event );
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                              _dialogDatepicker: function(input, date, onSelect, settings, pos) {
                                                                                                                                                  var id, browserWidth, browserHeight, scrollX, scrollY,
                                                                                                                                                      inst = this._dialogInst; // internal instance
                                                                                                                                          
                                                                                                                                                  if (!inst) {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                style: function( elem, name, value, extra ) {
                                                                                                                                                    // Don't set styles on text and comment nodes
                                                                                                                                                    if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                                                                                                                                        return;
                                                                                                                                                    }
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                  cleanData: function( elems, /* internal */ acceptData ) {
                                                                                                                                                      var elem, type, id, data,
                                                                                                                                                          i = 0,
                                                                                                                                                          internalKey = jQuery.expando,
                                                                                                                                                          cache = jQuery.cache,
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                Open

                                                                                                                                                                        } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                                                                                                                                                            diff = cache[1];
                                                                                                                                                
                                                                                                                                                                        // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                                                                                                                                                        } else {
                                                                                                                                                Severity: Critical
                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                  Open

                                                                                                                                                              if ( start && start[ 3 ] !== unit ) {
                                                                                                                                                                  // Trust units reported by jQuery.css
                                                                                                                                                                  unit = unit || start[ 3 ];
                                                                                                                                                  
                                                                                                                                                                  // Make sure we update the tween properties later on
                                                                                                                                                  Severity: Critical
                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                        setOffset: function( elem, options, i ) {
                                                                                                                                                            var position = jQuery.css( elem, "position" );
                                                                                                                                                    
                                                                                                                                                            // set position first, in-case top/left are set even on static elem
                                                                                                                                                            if ( position === "static" ) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                      function fixCloneNodeIssues( src, dest ) {
                                                                                                                                                          var nodeName, e, data;
                                                                                                                                                      
                                                                                                                                                          // We do not need to do anything for non-Elements
                                                                                                                                                          if ( dest.nodeType !== 1 ) {
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                        jQuery.fn.load = function( url, params, callback ) {
                                                                                                                                                            if ( typeof url !== "string" && _load ) {
                                                                                                                                                                return _load.apply( this, arguments );
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                              data: function( key, value ) {
                                                                                                                                                                  var attrs, name,
                                                                                                                                                                      data = null,
                                                                                                                                                                      i = 0,
                                                                                                                                                                      elem = this[0];
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                        offsetString = function(offset) {
                                                                                                                                                                            try {
                                                                                                                                                                                return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
                                                                                                                                                                                    offset, $.datepicker._getFormatConfig(inst));
                                                                                                                                                                            }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                  _attachHandlers: function(inst) {
                                                                                                                                                                      var stepMonths = this._get(inst, "stepMonths"),
                                                                                                                                                                          id = "#" + inst.id.replace( /\\\\/g, "\\" );
                                                                                                                                                                      inst.dpDiv.find("[data-handler]").map(function () {
                                                                                                                                                                          var handler = {
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                jQuery.ready.promise = function( obj ) {
                                                                                                                                                                    if ( !readyList ) {
                                                                                                                                                                
                                                                                                                                                                        readyList = jQuery.Deferred();
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                      attr: function( elem, name, value ) {
                                                                                                                                                                          var hooks, ret,
                                                                                                                                                                              nType = elem.nodeType;
                                                                                                                                                                  
                                                                                                                                                                          // don't get/set attributes on text, comment and attribute nodes
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                        handlers: function( event, handlers ) {
                                                                                                                                                                            var sel, handleObj, matches, i,
                                                                                                                                                                                handlerQueue = [],
                                                                                                                                                                                delegateCount = handlers.delegateCount,
                                                                                                                                                                                cur = event.target;
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                          _updateDatepicker: function(inst) {
                                                                                                                                                                              this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
                                                                                                                                                                              instActive = inst; // for delegate hover events
                                                                                                                                                                              inst.dpDiv.empty().append(this._generateHTML(inst));
                                                                                                                                                                              this._attachHandlers(inst);
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                            html: function( value ) {
                                                                                                                                                                                return jQuery.access( this, function( value ) {
                                                                                                                                                                                    var elem = this[0] || {},
                                                                                                                                                                                        i = 0,
                                                                                                                                                                                        l = this.length;
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                              toggleClass: function( value, stateVal ) {
                                                                                                                                                                                  var type = typeof value;
                                                                                                                                                                          
                                                                                                                                                                                  if ( typeof stateVal === "boolean" && type === "string" ) {
                                                                                                                                                                                      return stateVal ? this.addClass( value ) : this.removeClass( value );
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                removeClass: function( value ) {
                                                                                                                                                                                    var classes, elem, cur, clazz, j,
                                                                                                                                                                                        i = 0,
                                                                                                                                                                                        len = this.length,
                                                                                                                                                                                        proceed = arguments.length === 0 || typeof value === "string" && value;
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                      var looseParse = function (f, s, o) {
                                                                                                                                                                                          try {
                                                                                                                                                                                              var d = new Date('2012-01-01 ' + s);
                                                                                                                                                                                              if (isNaN(d.getTime())) {
                                                                                                                                                                                                  d = new Date('2012-01-01T' + s);
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                    addClass: function( value ) {
                                                                                                                                                                                        var classes, elem, cur, clazz, j,
                                                                                                                                                                                            i = 0,
                                                                                                                                                                                            len = this.length,
                                                                                                                                                                                            proceed = typeof value === "string" && value;
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                      $.datepicker._setDateDatepicker = function (target, date) {
                                                                                                                                                                                          var inst = this._getInst(target);
                                                                                                                                                                                          if (!inst) {
                                                                                                                                                                                              return;
                                                                                                                                                                                          }
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                        fix: function( event ) {
                                                                                                                                                                                            if ( event[ jQuery.expando ] ) {
                                                                                                                                                                                                return event;
                                                                                                                                                                                            }
                                                                                                                                                                                    
                                                                                                                                                                                    
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                          finish: function( type ) {
                                                                                                                                                                                              if ( type !== false ) {
                                                                                                                                                                                                  type = type || "fx";
                                                                                                                                                                                              }
                                                                                                                                                                                              return this.each(function() {
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                                _parseTime: function (timeString, withDate) {
                                                                                                                                                                                                    if (!this.inst) {
                                                                                                                                                                                                        this.inst = $.datepicker._getInst(this.$input[0]);
                                                                                                                                                                                                    }
                                                                                                                                                                                        
                                                                                                                                                                                        
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                          function propFilter( props, specialEasing ) {
                                                                                                                                                                                              var index, name, easing, value, hooks;
                                                                                                                                                                                          
                                                                                                                                                                                              // camelCase, specialEasing and expand cssHook pass
                                                                                                                                                                                              for ( index in props ) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                                    setup: function() {
                                                                                                                                                                                            
                                                                                                                                                                                                        if ( rformElems.test( this.nodeName ) ) {
                                                                                                                                                                                                            // IE doesn't fire change on a check/radio until blur; trigger it on click
                                                                                                                                                                                                            // after a propertychange. Eat the blur-change in special.change.handle.
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                                  $.datepicker._updateAlternate = function (inst) {
                                                                                                                                                                                                      var tp_inst = this._get(inst, 'timepicker');
                                                                                                                                                                                                      if (tp_inst) {
                                                                                                                                                                                                          var altField = tp_inst._defaults.altField;
                                                                                                                                                                                                          if (altField) { // update alternate field too
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                                        "*": [function( prop, value ) {
                                                                                                                                                                                                            var tween = this.createTween( prop, value ),
                                                                                                                                                                                                                target = tween.cur(),
                                                                                                                                                                                                                parts = rfxnum.exec( value ),
                                                                                                                                                                                                                unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                                  jQuery.fn.offset = function( options ) {
                                                                                                                                                                                                      if ( arguments.length ) {
                                                                                                                                                                                                          return options === undefined ?
                                                                                                                                                                                                              this :
                                                                                                                                                                                                              this.each(function( i ) {
                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

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

                                                                                                                                                                                                        off: function( types, selector, fn ) {
                                                                                                                                                                                                            var handleObj, type;
                                                                                                                                                                                                            if ( types && types.preventDefault && types.handleObj ) {
                                                                                                                                                                                                                // ( event )  dispatched jQuery.Event
                                                                                                                                                                                                                handleObj = types.handleObj;
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                              if ($.datepicker._datepickerShowing) {
                                                                                                                                                                                                                  switch (event.keyCode) {
                                                                                                                                                                                                                      case 9: $.datepicker._hideDatepicker();
                                                                                                                                                                                                                              handled = false;
                                                                                                                                                                                                                              break; // hide on tab out
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                        if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                                                                                                            jQuery.expr.filters.hidden = function( elem ) {
                                                                                                                                                                                                                // Support: Opera <= 12.12
                                                                                                                                                                                                                // Opera reports offsetWidths and offsetHeights less than zero on some elements
                                                                                                                                                                                                                return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                      if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                                                                                                                                                                                              support.getById && context.nodeType === 9 && documentIsHTML &&
                                                                                                                                                                                                                              Expr.relative[ tokens[1].type ] ) {
                                                                                                                                                                                                          
                                                                                                                                                                                                                          context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                                                                            Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                                                                                                                                                                                                        secondary, monthNames, monthNamesShort) {
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 1 hr to fix

                                                                                                                                                                                                              Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 50 mins to fix

                                                                                                                                                                                                                Function create has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                create: function (tp_inst, obj, unit, val, min, max, step) {
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 50 mins to fix

                                                                                                                                                                                                                  Function create has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                  create: function (tp_inst, obj, unit, val, min, max, step) {
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 50 mins to fix

                                                                                                                                                                                                                    Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                          if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                                                                                                                                                                                                                              contains( context, elem ) && elem.id === m ) {
                                                                                                                                                                                                                                              results.push( elem );
                                                                                                                                                                                                                                              return results;
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                            if ( Expr.relative[ tokens[j].type ] ) {
                                                                                                                                                                                                                                                break;
                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                  if ( name.indexOf("data-") === 0 ) {
                                                                                                                                                                                                                                                      name = jQuery.camelCase( name.slice(5) );
                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                      dataAttr( elem, name, data[ name ] );
                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                    if ( elem.id !== match[2] ) {
                                                                                                                                                                                                                                                        return rootjQuery.find( selector );
                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                      if ( rscriptType.test( node.type || "" ) &&
                                                                                                                                                                                                                                                          !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                          if ( node.src ) {
                                                                                                                                                                                                                                                              // Hope ajax is available...
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                    if ( copyIsArray ) {
                                                                                                                                                                                                                                                        copyIsArray = false;
                                                                                                                                                                                                                                                        clone = src && jQuery.isArray(src) ? src : [];
                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                          if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                                                                                                                                                                                                                              cur += clazz + " ";
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                                                                                                                                                                                                                                                cur = cur.replace( " " + clazz + " ", " " );
                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                              if ( matches[ sel ] ) {
                                                                                                                                                                                                                                                                  matches.push( handleObj );
                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                while ( j-- ) {
                                                                                                                                                                                                                                                                    if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
                                                                                                                                                                                                                                                                        elem.removeChild( tbody );
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                          Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                              init: function( elem, options, prop, end, easing, unit ) {
                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                if ( xhr.readyState !== 4 ) {
                                                                                                                                                                                                                                                                                    xhr.abort();
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                              if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                                                                                                                                                                                                                                                                                  // Cache the index of each encountered element
                                                                                                                                                                                                                                                                                  if ( useCache ) {
                                                                                                                                                                                                                                                                                      (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                    if ( name in thisCache ) {
                                                                                                                                                                                                                                                                        name = [ name ];
                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                        name = name.split(" ");
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                      for ( conv2 in converters ) {
                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                          // If conv2 outputs current
                                                                                                                                                                                                                                                                          tmp = conv2.split( " " );
                                                                                                                                                                                                                                                                          if ( tmp[ 1 ] === current ) {
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if ( (elem = matcherOut[i]) ) {
                                                                                                                                                                                                                                                                                // Restore matcherIn since elem is not yet a final match
                                                                                                                                                                                                                                                                                temp.push( (matcherIn[i] = elem) );
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                              if ( matches[ sel ] === undefined ) {
                                                                                                                                                                                                                                                                                  matches[ sel ] = handleObj.needsContext ?
                                                                                                                                                                                                                                                                                      jQuery( sel, this ).index( cur ) >= 0 :
                                                                                                                                                                                                                                                                                      jQuery.find( sel, this, null, [ cur ] ).length;
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                for ( type in data.events ) {
                                                                                                                                                                                                                                                                                    if ( special[ type ] ) {
                                                                                                                                                                                                                                                                                        jQuery.event.remove( elem, type );
                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                    // This is a shortcut to avoid jQuery.event.remove's overhead
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      if ( (data = cache[1]) === true || data === cachedruns ) {
                                                                                                                                                                                                                                                                                          return data === true;
                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                if ( (seed = find(
                                                                                                                                                                                                                                                                                    token.matches[0].replace( runescape, funescape ),
                                                                                                                                                                                                                                                                                    rsibling.test( tokens[0].type ) && context.parentNode || context
                                                                                                                                                                                                                                                                                )) ) {
                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                      if ( (event.result = ret) === false ) {
                                                                                                                                                                                                                                                                                          event.preventDefault();
                                                                                                                                                                                                                                                                                          event.stopPropagation();
                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                        if ( deleteExpando ) {
                                                                                                                                                                                                                                                                                            delete elem[ internalKey ];
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                        } else if ( typeof elem.removeAttribute !== core_strundefined ) {
                                                                                                                                                                                                                                                                                            elem.removeAttribute( internalKey );
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                      if ( conv && s[ "throws" ] ) {
                                                                                                                                                                                                                                                                                          response = conv( response );
                                                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                                                          try {
                                                                                                                                                                                                                                                                                              response = conv( response );
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    } else if ( copy !== undefined ) {
                                                                                                                                                                                                                                                                                        target[ name ] = copy;
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                          if ( elem && elem.parentNode ) {
                                                                                                                                                                                                                                                                                              // Handle the case where IE, Opera, and Webkit return items
                                                                                                                                                                                                                                                                                              // by name instead of ID
                                                                                                                                                                                                                                                                                              if ( elem.id === m ) {
                                                                                                                                                                                                                                                                                                  results.push( elem );
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                            if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                                                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                      if ( !(unmatched[i] || setMatched[i]) ) {
                                                                                                                                                                                                                                                                                                          setMatched[i] = pop.call( results );
                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                    if ( hasScripts ) {
                                                                                                                                                                                                                                                                                                        jQuery.merge( scripts, getAll( node, "script" ) );
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                          if ( cache[1] === true ) {
                                                                                                                                                                                                                                                                                                              return true;
                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                    if ( typeof xhr.responseText === "string" ) {
                                                                                                                                                                                                                                                                                                                        responses.text = xhr.responseText;
                                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                          for ( match in context ) {
                                                                                                                                                                                                                                                                                                              // Properties of context are called as methods if possible
                                                                                                                                                                                                                                                                                                              if ( jQuery.isFunction( this[ match ] ) ) {
                                                                                                                                                                                                                                                                                                                  this[ match ]( context[ match ] );
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                        if ( xhrOnUnloadAbort ) {
                                                                                                                                                                                                                                                                                                                            delete xhrCallbacks[ handle ];
                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                          if (overrides.hasOwnProperty(prop) && name[prop]) {
                                                                                                                                                                                                                                                                                                              fns[prop] = name[prop];
                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                    if ( !xhrCallbacks ) {
                                                                                                                                                                                                                                                                                                                        xhrCallbacks = {};
                                                                                                                                                                                                                                                                                                                        jQuery( window ).unload( xhrOnUnloadAbort );
                                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                              if (ap.indexOf('p') !== -1 && n < 12) {
                                                                                                                                                                                                                                                                                                                                  n += 12;
                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                              else {
                                                                                                                                                                                                                                                                                                                                  if (ap.indexOf('a') !== -1 && n === 12) {
                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                    switch (col) {
                                                                                                                                                                                                                                                                                                                        case 0: calender += " ui-datepicker-group-first";
                                                                                                                                                                                                                                                                                                                            cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
                                                                                                                                                                                                                                                                                                                        case numMonths[1]-1: calender += " ui-datepicker-group-last";
                                                                                                                                                                                                                                                                                                                            cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                  if ( !status && s.isLocal && !s.crossDomain ) {
                                                                                                                                                                                                                                                                                                                                      status = responses.text ? 200 : 404;
                                                                                                                                                                                                                                                                                                                                  // IE - #1450: sometimes returns 1223 when it should be 204
                                                                                                                                                                                                                                                                                                                                  } else if ( status === 1223 ) {
                                                                                                                                                                                                                                                                                                                                      status = 204;
                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                            if (lookAhead("'")) {
                                                                                                                                                                                                                                                                                                                                output += "'";
                                                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                                                                                literal = true;
                                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                              for (var m = o[litem + 'Min']; m <= max[litem]; m += parseInt(o[litem + 'Grid'], 10)) {
                                                                                                                                                                                                                                                                                                                                  gridSize[litem]++;
                                                                                                                                                                                                                                                                                                                                  html += '<td data-for="' + litem + '">' + ((m < 10) ? '0' : '') + m + '</td>';
                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                if (this.second >= this._defaults.secondMax) {
                                                                                                                                                                                                                                                                                                                                    this.second = this._defaults.secondMax;
                                                                                                                                                                                                                                                                                                                                    this._defaults.millisecMax = maxDateTime.getMilliseconds();
                                                                                                                                                                                                                                                                                                                                    if (this.millisec >= this._defaults.millisecMax) {
                                                                                                                                                                                                                                                                                                                                        this.millisec = this._defaults.millisecMax;
                                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                if (element.data('params')) data = data + "&" + element.data('params');
                                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                    for (var h = o[litem + 'Min']; h <= max[litem]; h += parseInt(o[litem + 'Grid'], 10)) {
                                                                                                                                                                                                                                                                                                                                        gridSize[litem]++;
                                                                                                                                                                                                                                                                                                                                        var tmph = $.datepicker.formatTime(this.support.ampm ? 'hht' : 'HH', {hour: h}, o);
                                                                                                                                                                                                                                                                                                                                        html += '<td data-for="' + litem + '">' + tmph + '</td>';
                                                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                      if (this.second <= this._defaults.secondMin) {
                                                                                                                                                                                                                                                                                                                                          this.second = this._defaults.secondMin;
                                                                                                                                                                                                                                                                                                                                          this._defaults.millisecMin = minDateTime.getMilliseconds();
                                                                                                                                                                                                                                                                                                                                          if (this.millisec <= this._defaults.millisecMin) {
                                                                                                                                                                                                                                                                                                                                              this.millisec = this._defaults.millisecMin;
                                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 45 mins to fix

                                                                                                                                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                if ( support.matchesSelector && documentIsHTML &&
                                                                                                                                                                                                                                                                                                                    ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                                                                                                                                                                                                                                                                                                    ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                    try {
                                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 40 mins to fix

                                                                                                                                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                  if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
                                                                                                                                                                                                                                                                                                                      return;
                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 40 mins to fix

                                                                                                                                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                if ( !jQuery.support.opacity ) {
                                                                                                                                                                                                                                                                                                                    jQuery.cssHooks.opacity = {
                                                                                                                                                                                                                                                                                                                        get: function( elem, computed ) {
                                                                                                                                                                                                                                                                                                                            // IE uses filters for opacity
                                                                                                                                                                                                                                                                                                                            return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
                                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 40 mins to fix

                                                                                                                                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                          if ( s.crossDomain == null ) {
                                                                                                                                                                                                                                                                                                                              parts = rurl.exec( s.url.toLowerCase() );
                                                                                                                                                                                                                                                                                                                              s.crossDomain = !!( parts &&
                                                                                                                                                                                                                                                                                                                                  ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                                                                                                                                                                                                                                                                                                                      ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
                                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 40 mins to fix

                                                                                                                                                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                if ( matcher[ expando ] ) {
                                                                                                                                                                                                                                                                                                                                    // Find the next relative operator (if any) for proper handling
                                                                                                                                                                                                                                                                                                                                    j = ++i;
                                                                                                                                                                                                                                                                                                                                    for ( ; j < len; j++ ) {
                                                                                                                                                                                                                                                                                                                                        if ( Expr.relative[ tokens[j].type ] ) {
                                                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 40 mins to fix

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

                                                                                                                                                                                                                                                                                                                      function condense( unmatched, map, filter, context, xml ) {
                                                                                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                superMatcher = function( seed, context, xml, results, expandContext ) {
                                                                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                              add: function( elem, types, handler, data, selector ) {
                                                                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                    "CHILD": function( type, what, argument, first, last ) {
                                                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                  on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                                options: function (tp_inst, obj, unit, opts, val) {
                                                                                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                      var parseDateTimeInternal = function (dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
                                                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                    function Tween( elem, options, prop, end, easing ) {
                                                                                                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                          $.datepicker.parseDateTime = function (dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
                                                                                                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                        function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                                                                                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                              _dialogDatepicker: function(input, date, onSelect, settings, pos) {
                                                                                                                                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                                remove: function( elem, types, handler, selector, mappedTypes ) {
                                                                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                                                                                                                              options: function (tp_inst, obj, unit, opts, val) {
                                                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 35 mins to fix

                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                        return jQuery.makeArray( selector, this );
                                                                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                                      return results;
                                                                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                            return key === undefined || core_hasOwn.call( obj, key );
                                                                                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                                      return results;
                                                                                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                                        return ( context || rootjQuery ).find( selector );
                                                                                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                                                      return this;
                                                                                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                                                            return results;
                                                                                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                                          return compare & 4 ? -1 : 1;
                                                                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                                            return rootjQuery.ready( selector );
                                                                                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                                          return a.compareDocumentPosition ? -1 : 1;
                                                                                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                                                            return obj.slider(opts, val);
                                                                                                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                                                                                                              return results;
                                                                                                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                                                                                                      Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                                                                                    return ret == null ?
                                                                                                                                                                                                                                                                                                                                                                                        undefined :
                                                                                                                                                                                                                                                                                                                                                                                        ret;
                                                                                                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                                                                                                        Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                                                                                                          return true;
                                                                                                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                                                                                                          Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                                                                                                            return this.constructor( context ).find( selector );
                                                                                                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                                                                                                            Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                                                                                                                  return obj.slider(opts);
                                                                                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                                                                                              Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                                                                                                    return select( selector.replace( rtrim, "$1" ), context, results, seed );
                                                                                                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                                                                                                Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                                                                                                              return ret;
                                                                                                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                                                                                                  Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                                                                            return this._base_optionDatepicker.call($.datepicker, target, name_clone || name, value);
                                                                                                                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                                                                                                                    Found in public/assets/application-acfe820e7f1681bfacd0f77c4ee463aa.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                                                                                                                                                      (function( window, undefined ) {
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      // Can't do this because several apps including ASP.NET trace
                                                                                                                                                                                                                                                                                                                                                                                      // the stack via arguments.caller.callee and Firefox dies if
                                                                                                                                                                                                                                                                                                                                                                                      // you try to trace through "use strict" call chains. (#13335)
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-245912c0c6d6ba6b9063bbe590ae4262.js on lines 15..9790
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-be7aafb564607d9dbdf7d77c5c1fdc20.js on lines 15..9790
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-ee4a6e59c938709392bfa5370a680408.js on lines 15..9790
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-f6f798d1f3911f01a85837a58166d089.js on lines 15..9790

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

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

                                                                                                                                                                                                                                                                                                                                                                                      (function ($) {
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                          /*
                                                                                                                                                                                                                                                                                                                                                                                          * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded"
                                                                                                                                                                                                                                                                                                                                                                                          */
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-245912c0c6d6ba6b9063bbe590ae4262.js on lines 12157..14290
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-be7aafb564607d9dbdf7d77c5c1fdc20.js on lines 12157..14290
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-ee4a6e59c938709392bfa5370a680408.js on lines 12157..14290
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-f6f798d1f3911f01a85837a58166d089.js on lines 12157..14290

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

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

                                                                                                                                                                                                                                                                                                                                                                                      (function( $, undefined ) {
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      $.extend($.ui, { datepicker: { version: "1.10.3" } });
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      var PROP_NAME = "datepicker",
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-245912c0c6d6ba6b9063bbe590ae4262.js on lines 10128..12152
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-be7aafb564607d9dbdf7d77c5c1fdc20.js on lines 10128..12152
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-ee4a6e59c938709392bfa5370a680408.js on lines 10128..12152
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-f6f798d1f3911f01a85837a58166d089.js on lines 10128..12152

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

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

                                                                                                                                                                                                                                                                                                                                                                                      (function() {
                                                                                                                                                                                                                                                                                                                                                                                        var CSRFToken, anchoredLink, browserCompatibleDocumentParser, browserIsntBuggy, browserSupportsPushState, cacheCurrentPage, cacheSize, changePage, constrainPageCacheTo, createDocument, crossOriginLink, currentState, executeScriptTags, extractLink, extractTitleAndBody, fetchHistory, fetchReplacement, handleClick, ignoreClick, initializeTurbolinks, installClickHandlerLast, loadedAssets, noTurbolink, nonHtmlLink, nonStandardClick, pageCache, pageChangePrevented, pagesCached, processResponse, recallScrollPosition, referer, reflectNewUrl, reflectRedirectedUrl, rememberCurrentState, rememberCurrentUrl, removeHash, removeNoscriptTags, requestMethod, requestMethodIsSafe, resetScrollPosition, targetLink, triggerEvent, visit, xhr, _ref,
                                                                                                                                                                                                                                                                                                                                                                                          __hasProp = {}.hasOwnProperty,
                                                                                                                                                                                                                                                                                                                                                                                          __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-245912c0c6d6ba6b9063bbe590ae4262.js on lines 14685..15106
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-be7aafb564607d9dbdf7d77c5c1fdc20.js on lines 14685..15106
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-ee4a6e59c938709392bfa5370a680408.js on lines 14685..15106
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-f6f798d1f3911f01a85837a58166d089.js on lines 14685..15106

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

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

                                                                                                                                                                                                                                                                                                                                                                                      (function($, undefined) {
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      /**
                                                                                                                                                                                                                                                                                                                                                                                       * Unobtrusive scripting adapter for jQuery
                                                                                                                                                                                                                                                                                                                                                                                       * https://github.com/rails/jquery-ujs
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-245912c0c6d6ba6b9063bbe590ae4262.js on lines 14291..14684
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-be7aafb564607d9dbdf7d77c5c1fdc20.js on lines 14291..14684
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-ee4a6e59c938709392bfa5370a680408.js on lines 14291..14684
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-f6f798d1f3911f01a85837a58166d089.js on lines 14291..14684

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

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

                                                                                                                                                                                                                                                                                                                                                                                      (function( $, undefined ) {
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      var uuid = 0,
                                                                                                                                                                                                                                                                                                                                                                                          runiqueId = /^ui-id-\d+$/;
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-245912c0c6d6ba6b9063bbe590ae4262.js on lines 9802..10111
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-be7aafb564607d9dbdf7d77c5c1fdc20.js on lines 9802..10111
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-ee4a6e59c938709392bfa5370a680408.js on lines 9802..10111
                                                                                                                                                                                                                                                                                                                                                                                      public/assets/application-f6f798d1f3911f01a85837a58166d089.js on lines 9802..10111

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

                                                                                                                                                                                                                                                                                                                                                                                      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