shadowproject/shadow

View on GitHub
src/qt/res/assets/plugins/footable/footable.js

Summary

Maintainability
F
4 days
Test Coverage

Function Footable has 435 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function Footable(t, o, id) {
        ///<summary>Inits a new instance of the plugin.</summary>
        ///<param name="t">The main table element to apply this plugin to.</param>
        ///<param name="o">The options supplied to the plugin. Check the defaults object to see all available options.</param>
        ///<param name="id">The id to assign to this instance of the plugin.</param>
Severity: Major
Found in src/qt/res/assets/plugins/footable/footable.js - About 2 days to fix

    File footable.js has 644 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * FooTable - Awesome Responsive Tables
     * Version : 2.0.3
     * http://fooplugins.com/plugins/footable-jquery/
     *
    Severity: Major
    Found in src/qt/res/assets/plugins/footable/footable.js - About 1 day to fix

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

              ft.redraw = function () {
                  //add the toggler to each row
                  ft.addRowToggle();
      
                  //bind the toggle selector click events
      Severity: Major
      Found in src/qt/res/assets/plugins/footable/footable.js - About 2 hrs to fix

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

                ft.init = function () {
                    var $window = $(w), $table = $(ft.table);
        
                    w.footable.plugins.init(ft);
        
        
        Severity: Major
        Found in src/qt/res/assets/plugins/footable/footable.js - About 2 hrs to fix

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

                  ft.getColumnData = function (th) {
                      var $th = $(th), hide = $th.data('hide'), index = $th.index();
                      hide = hide || '';
                      hide = jQuery.map(hide.split(','), function (a) {
                          return jQuery.trim(a);
          Severity: Minor
          Found in src/qt/res/assets/plugins/footable/footable.js - About 1 hr to fix

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

                    ft.resize = function () {
                        var $table = $(ft.table);
            
                        if (!$table.is(':visible')) {
                            return;
            Severity: Minor
            Found in src/qt/res/assets/plugins/footable/footable.js - About 1 hr to fix

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

                      ft.createOrUpdateDetailRow = function (actualRow) {
                          var $row = $(actualRow), $next = $row.next(), $detail, values = [];
                          if ($row.data('detail_created') === true) return true;
              
                          if ($row.is(':hidden')) return false; //if the row is hidden for some reason (perhaps filtered) then get out of here
              Severity: Minor
              Found in src/qt/res/assets/plugins/footable/footable.js - About 1 hr to fix

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

                            createDetail: function (element, data, createGroupedDetail, separatorChar, classes) {
                Severity: Minor
                Found in src/qt/res/assets/plugins/footable/footable.js - About 35 mins to fix

                  There are no issues that match your filters.

                  Category
                  Status