shadowproject/shadow

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

Summary

Maintainability
C
1 day
Test Coverage

Function Paginate has 185 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function Paginate() {
        var p = this;
        p.name = 'Footable Paginate';

        p.init = function (ft) {
Severity: Major
Found in src/qt/res/assets/plugins/footable/footable.paginate.js - About 7 hrs to fix

    Function createNavigation has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            p.createNavigation = function (ft, tbody) {
    
                var $nav = $(ft.table).find(ft.pageInfo.pageNavigation);
                //if we cannot find the navigation control within the table, then try find it outside
                if ($nav.length === 0) {
    Severity: Major
    Found in src/qt/res/assets/plugins/footable/footable.paginate.js - About 2 hrs to fix

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

              p.createPages = function (ft, tbody) {
                  var pages = 1;
                  var info = ft.pageInfo;
                  var pageCount = pages * info.pageSize;
                  var page = [];
      Severity: Minor
      Found in src/qt/res/assets/plugins/footable/footable.paginate.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status