opsforgeio/cabot

View on GitHub
cabot/static/theme/js/jquery.dataTables.min.js

Summary

Maintainability
F
1 mo
Test Coverage

Function DataTable has 4212 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var DataTable = function( oInit )
  {


    /**
Severity: Major
Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 wks to fix

    File jquery.dataTables.min.js has 4999 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * @summary     DataTables
     * @description Paginate, search and sort HTML tables
     * @version     1.9.4
     * @file        jquery.dataTables.js
    Severity: Major
    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 wks to fix

      Function _fnScrollDraw has 182 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _fnScrollDraw ( o )
          {
            var
              nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
              nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
      Severity: Major
      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 7 hrs to fix

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

            function _fnCalculateColumnWidths ( oSettings )
            {
              var iTableWidth = oSettings.nTable.offsetWidth;
              var iUserInputs = 0;
              var iTmpWidth;
        Severity: Major
        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 6 hrs to fix

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

              function _fnDraw( oSettings )
              {
                /* Provide a pre-callback function which can be used to cancel the draw is false is returned */
                var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
                if ( $.inArray( false, aPreDraw ) !== -1 )
          Severity: Major
          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 5 hrs to fix

            Function _fnGatherData has 131 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _fnGatherData( oSettings )
                {
                  var iLoop, i, iLen, j, jLen, jInner,
                    nTds, nTrs, nTd, nTr, aLocalData, iThisIndex,
                    iRow, iRows, iColumn, iColumns, sNodeName,
            Severity: Major
            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 5 hrs to fix

              Function _fnSort has 123 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _fnSort ( oSettings, bApplyClasses )
                  {
                    var
                      i, iLen, j, jLen, k, kLen,
                      sDataType, nTh,
              Severity: Major
              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 4 hrs to fix

                Function _fnFeatureHtmlTable has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _fnFeatureHtmlTable ( oSettings )
                    {
                      /* Check if scrolling is enabled or not - if not then leave the DOM unaltered */
                      if ( oSettings.oScroll.sX === "" && oSettings.oScroll.sY === "" )
                      {
                Severity: Major
                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 4 hrs to fix

                  Function _fnAddOptionsHtml has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _fnAddOptionsHtml ( oSettings )
                      {
                        /*
                         * Create a temporary, empty, div which we can later on replace with what we have generated
                         * we do it this way to rendering the 'options' html offline - speed :-)
                  Severity: Major
                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 4 hrs to fix

                    Function _fnSortingClasses has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _fnSortingClasses( oSettings )
                        {
                          var i, iLen, j, jLen, iFound;
                          var aaSort, sClass;
                          var iColumns = oSettings.aoColumns.length;
                    Severity: Major
                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 4 hrs to fix

                      Function _fnBuildHead has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _fnBuildHead( oSettings )
                          {
                            var i, nTh, iLen, j, jLen;
                            var iThs = $('th, td', oSettings.nTHead).length;
                            var iCorrector = 0;
                      Severity: Major
                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

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

                            this.fnDestroy = function ( bRemove )
                            {
                              var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                              var nOrig = oSettings.nTableWrapper.parentNode;
                              var nBody = oSettings.nTBody;
                        Severity: Major
                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

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

                                "fnUpdate": function ( oSettings, fnCallbackDraw )
                                {
                                  if ( !oSettings.aanFeatures.p )
                                  {
                                    return;
                          Severity: Major
                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

                            Function fnSetColumnVis has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
                                {
                                  var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                  var i, iLen;
                                  var aoColumns = oSettings.aoColumns;
                            Severity: Major
                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

                              Function $ has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  this.$ = function ( sSelector, oOpts )
                                  {
                                    var i, iLen, a = [], tr;
                                    var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                    var aoData = oSettings.aoData;
                              Severity: Major
                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

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

                                    function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
                                    {
                                      _fnBindAction( nNode, {}, function (e) {
                                        /* If the column is not sortable - don't to anything */
                                        if ( oSettings.aoColumns[iDataIndex].bSortable === false )
                                Severity: Major
                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

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

                                      function _fnInitialise ( oSettings )
                                      {
                                        var i, iLen, iAjaxStart=oSettings.iInitDisplayStart;
                                  
                                        /* Ensure that the table data is fully initialised */
                                  Severity: Major
                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                        function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
                                        {
                                          var i, iLen, j, jLen, k, kLen, n, nLocalTr;
                                          var aoLocal = [];
                                          var aApplied = [];
                                    Severity: Major
                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                          function _fnFeatureHtmlLength ( oSettings )
                                          {
                                            if ( oSettings.oScroll.bInfinite )
                                            {
                                              return null;
                                      Severity: Major
                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                            function _fnGetObjectDataFn( mSource )
                                            {
                                              if ( mSource === null )
                                              {
                                                /* Give an empty string for rendering / sorting etc */
                                        Severity: Major
                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                              function _fnColumnOptions( oSettings, iCol, oOptions )
                                              {
                                                var oCol = oSettings.aoColumns[ iCol ];
                                          
                                                /* User specified column options */
                                          Severity: Major
                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
                                                {
                                                  var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                            
                                                  if ( !oSettings.oFeatures.bFilter )
                                            Severity: Major
                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                  function _fnPageChange ( oSettings, mAction )
                                                  {
                                                    var iOldStart = oSettings._iDisplayStart;
                                              
                                                    if ( typeof mAction === "number" )
                                              Severity: Major
                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                    function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
                                                    {
                                                      var date = new Date();
                                                      date.setTime( date.getTime()+(iSecs*1000) );
                                                
                                                
                                                Severity: Major
                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                      this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
                                                      {
                                                        var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                                        var i, iLen, sDisplay;
                                                        var iRow = (typeof mRow === 'object') ?
                                                  Severity: Major
                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                        function _fnSetObjectDataFn( mSource )
                                                        {
                                                          if ( mSource === null )
                                                          {
                                                            /* Nothing to do when the data source is null */
                                                    Severity: Major
                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                              var fnInnerSorting = function () {
                                                                var iColumn, iNextSort;
                                                      
                                                                /* If the shift key is pressed then we are multiple column sorting */
                                                                if ( e.shiftKey )
                                                      Severity: Minor
                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

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

                                                            function _fnAjaxParameters( oSettings )
                                                            {
                                                              var iColumns = oSettings.aoColumns.length;
                                                              var aoData = [], mDataProp, aaSort, aDataSort;
                                                              var i, j;
                                                        Severity: Minor
                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                              function _fnAjaxUpdateDraw ( oSettings, json )
                                                              {
                                                                if ( json.sEcho !== undefined )
                                                                {
                                                                  /* Protect against old returns over-writing a new one. Possible when you get
                                                          Severity: Minor
                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                function _fnDetectHeader ( aLayout, nThead )
                                                                {
                                                                  var nTrs = $(nThead).children('tr');
                                                                  var nTr, nCell;
                                                                  var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
                                                            Severity: Minor
                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                  function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
                                                                  {
                                                                    var i;
                                                                    var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart, bCaseInsensitive );
                                                                    var oPrevSearch = oSettings.oPreviousSearch;
                                                              Severity: Minor
                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                    function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
                                                                    {
                                                                      var i, iLen, j, jLen, k, kLen;
                                                                
                                                                      // Column definitions with aTargets
                                                                Severity: Minor
                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                      function _fnFeatureHtmlFilter ( oSettings )
                                                                      {
                                                                        var oPreviousSearch = oSettings.oPreviousSearch;
                                                                  
                                                                        var sSearchStr = oSettings.oLanguage.sSearch;
                                                                  Severity: Minor
                                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                        function _fnAddData ( oSettings, aDataSupplied )
                                                                        {
                                                                          var oCol;
                                                                    
                                                                          /* Take an independent copy of the data source so we can bash it about as we wish */
                                                                    Severity: Minor
                                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                          function _fnCreateTr ( oSettings, iRow )
                                                                          {
                                                                            var oData = oSettings.aoData[iRow];
                                                                            var nTd;
                                                                      
                                                                      
                                                                      Severity: Minor
                                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                            function _fnGetTdNodes ( oSettings, iIndividualRow )
                                                                            {
                                                                              var anReturn = [];
                                                                              var iCorrector;
                                                                              var anTds, nTd;
                                                                        Severity: Minor
                                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                              this.fnAddData = function( mData, bRedraw )
                                                                              {
                                                                                if ( mData.length === 0 )
                                                                                {
                                                                                  return [];
                                                                          Severity: Minor
                                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
                                                                                {
                                                                                  /* Find settings from table node */
                                                                                  var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                                                                  var i, iLen, iAODataIndex;
                                                                            Severity: Minor
                                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                  function _fnUpdateInfo ( oSettings )
                                                                                  {
                                                                                    /* Show information about the table */
                                                                                    if ( !oSettings.oFeatures.bInfo || oSettings.aanFeatures.i.length === 0 )
                                                                                    {
                                                                              Severity: Minor
                                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                      "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
                                                                                      {
                                                                                        var oLang = oSettings.oLanguage.oPaginate;
                                                                                        var oClasses = oSettings.oClasses;
                                                                                        var fnClickHandler = function ( e ) {
                                                                                Severity: Minor
                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                      function _fnAddColumn( oSettings, nTh )
                                                                                      {
                                                                                        var oDefaults = DataTable.defaults.columns;
                                                                                        var iCol = oSettings.aoColumns.length;
                                                                                        var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
                                                                                  Severity: Minor
                                                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                            var fetchData = function (data, type, src) {
                                                                                              var a = src.split('.');
                                                                                              var arrayNotation, out, innerSrc;
                                                                                    
                                                                                              if ( src !== "" )
                                                                                    Severity: Minor
                                                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                          this.fnOpen = function( nTr, mHtml, sClass )
                                                                                          {
                                                                                            /* Find settings from table node */
                                                                                            var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                                                                      
                                                                                      
                                                                                      Severity: Minor
                                                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                            function _fnLoadState ( oSettings, oInit )
                                                                                            {
                                                                                              if ( !oSettings.oFeatures.bStateSave )
                                                                                              {
                                                                                                return;
                                                                                        Severity: Minor
                                                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                              function _fnFilterComplete ( oSettings, oInput, iForce )
                                                                                              {
                                                                                                var oPrevSearch = oSettings.oPreviousSearch;
                                                                                                var aoPrevSearch = oSettings.aoPreSearchCols;
                                                                                                var fnSaveFilter = function ( oFilter ) {
                                                                                          Severity: Minor
                                                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                                var _fnJsonString = (window.JSON) ? JSON.stringify : function( o )
                                                                                                {
                                                                                                  /* Not an object or array */
                                                                                                  var sType = typeof o;
                                                                                                  if (sType !== "object" || o === null)
                                                                                            Severity: Minor
                                                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                                    "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
                                                                                                    {
                                                                                                      var oLang = oSettings.oLanguage.oPaginate;
                                                                                                      var oClasses = oSettings.oClasses;
                                                                                                      var fnClickHandler = function ( e ) {
                                                                                              Severity: Minor
                                                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                                    function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
                                                                                                    {
                                                                                                      var sData;
                                                                                                      var oCol = oSettings.aoColumns[iCol];
                                                                                                      var oData = oSettings.aoData[iRow]._aData;
                                                                                                Severity: Minor
                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                                          var setData = function (data, val, src) {
                                                                                                            var a = src.split('.'), b;
                                                                                                            var arrayNotation, o, innerSrc;
                                                                                                  
                                                                                                            for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
                                                                                                  Severity: Minor
                                                                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                                                                                        function _fnScrollBarWidth ()
                                                                                                        {
                                                                                                          var inner = document.createElement('p');
                                                                                                          var style = inner.style;
                                                                                                          style.width = "100%";
                                                                                                    Severity: Minor
                                                                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                    if ( oCol.bUseRendered )
                                                                                                                    {
                                                                                                                      /* Use the rendered data for filtering / sorting */
                                                                                                                      _fnSetCellData( oSettings, iRow, iColumn, sRendered );
                                                                                                                    }
                                                                                                      Severity: Major
                                                                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                        if ( a[i] !== "" ) {
                                                                                                                          data = data[ a[i] ];
                                                                                                                        }
                                                                                                        Severity: Major
                                                                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

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

                                                                                                              function _fnFilterColumn ( oSettings, sInput, iColumn, bRegex, bSmart, bCaseInsensitive )
                                                                                                          Severity: Minor
                                                                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                          for ( k=0 ; k<iRowspan ; k++ )
                                                                                                                          {
                                                                                                                            aApplied[i+k][j+iColspan] = 1;
                                                                                                                          }
                                                                                                            Severity: Major
                                                                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                            if ( nRow == oSettings.aoOpenRows[k].nParent )
                                                                                                                            {
                                                                                                                              anRows.push( oSettings.aoOpenRows[k].nTr );
                                                                                                                              break;
                                                                                                                            }
                                                                                                              Severity: Major
                                                                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                              if ( oSettings.aoColumns[i].sWidthOrig === null )
                                                                                                                              {
                                                                                                                                iTotal += $(oNodes[iCorrector]).outerWidth();
                                                                                                                              }
                                                                                                                              else
                                                                                                                Severity: Major
                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                            if ( tr )
                                                                                                                            {
                                                                                                                              a.push( tr );
                                                                                                                            }
                                                                                                                  Severity: Major
                                                                                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                  for ( j=0, jLen=aoData.length ; j<jLen ; j++ )
                                                                                                                                  {
                                                                                                                                    _fnSetCellData( oSettings, j, iColumn, aData[j] );
                                                                                                                                  }
                                                                                                                    Severity: Major
                                                                                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

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

                                                                                                                          this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
                                                                                                                      Severity: Minor
                                                                                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                    if ( cOption == aoFeatures[k].cFeature )
                                                                                                                                    {
                                                                                                                                      nTmp = aoFeatures[k].fnInit( oSettings );
                                                                                                                                      if ( nTmp )
                                                                                                                                      {
                                                                                                                        Severity: Major
                                                                                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                          Open

                                                                                                                                    if ( oSettings._iDisplayStart + oSettings._iDisplayLength < oSettings.fnRecordsDisplay() )
                                                                                                                                    {
                                                                                                                                      oSettings._iDisplayStart += oSettings._iDisplayLength;
                                                                                                                                    }
                                                                                                                          Severity: Major
                                                                                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                    for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
                                                                                                                                    {
                                                                                                                                      tr = aoData[ i ].nTr ;
                                                                                                                                      if ( tr )
                                                                                                                                      {
                                                                                                                            Severity: Major
                                                                                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                            while( oSettings.aoColumns.length <= aTargets[j] )
                                                                                                                                            {
                                                                                                                                              _fnAddColumn( oSettings );
                                                                                                                                            }
                                                                                                                              Severity: Major
                                                                                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                            else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
                                                                                                                                            {
                                                                                                                                              /* Negative integer, right to left column counting */
                                                                                                                                              fn( oSettings.aoColumns.length+aTargets[j], aoColDefs[i] );
                                                                                                                                            }
                                                                                                                                Severity: Major
                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                if ( sNodeName == "TD" || sNodeName == "TH" )
                                                                                                                                                {
                                                                                                                                                  _fnSetCellData( oSettings, iThisIndex, jInner, $.trim(nTd.innerHTML) );
                                                                                                                                                  jInner++;
                                                                                                                                                }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                            if ( oSettings._iDisplayLength >= 0 )
                                                                                                                                            {
                                                                                                                                              var iPages = parseInt( (oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength, 10 ) + 1;
                                                                                                                                              oSettings._iDisplayStart = (iPages-1) * oSettings._iDisplayLength;
                                                                                                                                            }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                            else if ( oOpts.order == "original" && oOpts.filter == "applied" )
                                                                                                                                            {
                                                                                                                                              for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
                                                                                                                                              {
                                                                                                                                                tr = aoData[ i ].nTr;
                                                                                                                                      Severity: Major
                                                                                                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                      if ( sValType !== '' )
                                                                                                                                                      {
                                                                                                                                                        sThisType = _fnDetectType( sValType );
                                                                                                                                                        if ( oCol.sType === null )
                                                                                                                                                        {
                                                                                                                                        Severity: Major
                                                                                                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                        for ( k=0 ; k<iRowspan ; k++ )
                                                                                                                                                        {
                                                                                                                                                          aLayout[i+k][iColShifted+l] = {
                                                                                                                                                            "cell": nCell,
                                                                                                                                                            "unique": bUnique
                                                                                                                                          Severity: Major
                                                                                                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                          if ( oSettings.aoColumns[i].sContentPadding !== "" )
                                                                                                                                                          {
                                                                                                                                                            nTd.innerHTML += oSettings.aoColumns[i].sContentPadding;
                                                                                                                                                          }
                                                                                                                                            Severity: Major
                                                                                                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

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

                                                                                                                                                  function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
                                                                                                                                                                  out.push( fetchData( data[j], type, innerSrc ) );
                                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                  Open

                                                                                                                                                            if ( nCell.nodeName.toUpperCase() == "TD" ||
                                                                                                                                                                 nCell.nodeName.toUpperCase() == "TH" )
                                                                                                                                                            {
                                                                                                                                                              /* Get the col and rowspan attributes from the DOM and sanitise them */
                                                                                                                                                              iColspan = nCell.getAttribute('colspan') * 1;
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 40 mins to fix

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

                                                                                                                                                        function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 35 mins to fix

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

                                                                                                                                                          this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 35 mins to fix

                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                        Open

                                                                                                                                                              return s+"px";
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 30 mins to fix

                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                          Open

                                                                                                                                                                return sData;
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 30 mins to fix

                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                            Open

                                                                                                                                                                        return null;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 30 mins to fix

                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                              Open

                                                                                                                                                                    return 'numeric';
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 30 mins to fix

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

                                                                                                                                                                              if ( sValType !== '' )
                                                                                                                                                                              {
                                                                                                                                                                                sThisType = _fnDetectType( sValType );
                                                                                                                                                                                if ( oCol.sType === null )
                                                                                                                                                                                {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 498..510

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

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                          if ( sVarType !== null && sVarType !== '' )
                                                                                                                                                                          {
                                                                                                                                                                            sThisType = _fnDetectType( sVarType );
                                                                                                                                                                            if ( oCol.sType === null )
                                                                                                                                                                            {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 625..638

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

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      else if ( oOpts.order == "current" && oOpts.filter == "none" )
                                                                                                                                                                      {
                                                                                                                                                                        for ( i=0, iLen=aiDisplayMaster.length ; i<iLen ; i++ )
                                                                                                                                                                        {
                                                                                                                                                                          tr = aoData[ aiDisplayMaster[i] ].nTr;
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 1 hr to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 5018..5054

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 73.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      else if ( oOpts.order == "current" && oOpts.filter == "applied" )
                                                                                                                                                                      {
                                                                                                                                                                        for ( i=0, iLen=aiDisplay.length ; i<iLen ; i++ )
                                                                                                                                                                        {
                                                                                                                                                                          tr = aoData[ aiDisplay[i] ].nTr;
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 1 hr to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 5007..5054

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 73.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                        while ( nTd )
                                                                                                                                                                        {
                                                                                                                                                                          sNodeName = nTd.nodeName.toUpperCase();
                                                                                                                                                                          if ( sNodeName == "TD" || sNodeName == "TH" )
                                                                                                                                                                          {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 1 hr to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 4666..4674

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

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                          while ( nTd )
                                                                                                                                                                          {
                                                                                                                                                                            sNodeName = nTd.nodeName.toLowerCase();
                                                                                                                                                                            if ( sNodeName == 'td' || sNodeName == 'th' )
                                                                                                                                                                            {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 1 hr to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 584..592

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

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
                                                                                                                                                                        _fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(), oSettings.aiDisplay ] );
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 55 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 1522..1523

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                    "fnRecordsTotal": function ()
                                                                                                                                                                    {
                                                                                                                                                                      if ( this.oFeatures.bServerSide ) {
                                                                                                                                                                        return parseInt(this._iRecordsTotal, 10);
                                                                                                                                                                      } else {
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 55 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 11357..11364

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
                                                                                                                                                                        _fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(), oSettings.aiDisplay ] );
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 55 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 1519..1520

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                    "fnRecordsDisplay": function ()
                                                                                                                                                                    {
                                                                                                                                                                      if ( this.oFeatures.bServerSide ) {
                                                                                                                                                                        return parseInt(this._iRecordsDisplay, 10);
                                                                                                                                                                      } else {
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 55 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 11344..11351

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      if ( oSettings.nTable != oSettings.nTHead.parentNode )
                                                                                                                                                                      {
                                                                                                                                                                        $(oSettings.nTable).children('thead').remove();
                                                                                                                                                                        oSettings.nTable.appendChild( oSettings.nTHead );
                                                                                                                                                                      }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 40 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 5447..5451

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      if ( oSettings.nTFoot && oSettings.nTable != oSettings.nTFoot.parentNode )
                                                                                                                                                                      {
                                                                                                                                                                        $(oSettings.nTable).children('tfoot').remove();
                                                                                                                                                                        oSettings.nTable.appendChild( oSettings.nTFoot );
                                                                                                                                                                      }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 40 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 5441..5445

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                        var fnClickHandler = function ( e ) {
                                                                                                                                                                          if ( oSettings.oApi._fnPageChange( oSettings, e.data.action ) )
                                                                                                                                                                          {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                          }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 40 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 11661..11666

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                        var fnClickHandler = function ( e ) {
                                                                                                                                                                          if ( oSettings.oApi._fnPageChange( oSettings, e.data.action ) )
                                                                                                                                                                          {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                          }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 40 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 11564..11569

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      if ( tbody.length === 0 )
                                                                                                                                                                      {
                                                                                                                                                                        tbody = [ document.createElement( 'tbody' ) ];
                                                                                                                                                                        this.appendChild( tbody[0] );
                                                                                                                                                                      }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 35 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 6735..6739

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                        aaSort = ( oSettings.aaSortingFixed !== null ) ?
                                                                                                                                                                          oSettings.aaSortingFixed.concat( oSettings.aaSorting ) :
                                                                                                                                                                          oSettings.aaSorting.slice();
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 35 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 3948..3950

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                      if ( thead.length === 0 )
                                                                                                                                                                      {
                                                                                                                                                                        thead = [ document.createElement( 'thead' ) ];
                                                                                                                                                                        this.appendChild( thead[0] );
                                                                                                                                                                      }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 35 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 6743..6747

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                        aaSort = ( oSettings.aaSortingFixed !== null ) ?
                                                                                                                                                                          oSettings.aaSortingFixed.concat( oSettings.aaSorting ) :
                                                                                                                                                                          oSettings.aaSorting.slice();
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 35 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 1953..1955

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                            if ( oCol.fnCreatedCell )
                                                                                                                                                                            {
                                                                                                                                                                              oCol.fnCreatedCell.call( oSettings.oInstance,
                                                                                                                                                                                nCell, _fnGetCellData( oSettings, iRow, iColumn, 'display' ), oData._aData, iRow, iColumn
                                                                                                                                                                              );
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 35 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 1147..1152

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

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

                                                                                                                                                                          if ( oCol.fnCreatedCell )
                                                                                                                                                                          {
                                                                                                                                                                            oCol.fnCreatedCell.call( oSettings.oInstance,
                                                                                                                                                                              nTd, _fnGetCellData( oSettings, iRow, i, 'display' ), oData._aData, iRow, i
                                                                                                                                                                            );
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in cabot/static/theme/js/jquery.dataTables.min.js and 1 other location - About 35 mins to fix
                                                                                                                                                                cabot/static/theme/js/jquery.dataTables.min.js on lines 683..688

                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                Tuning

                                                                                                                                                                This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                Refactorings

                                                                                                                                                                Further Reading

                                                                                                                                                                There are no issues that match your filters.

                                                                                                                                                                Category
                                                                                                                                                                Status