iamisti/mdDataTable

View on GitHub
app/modules/main/features/PaginationFeature.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

    function PaginationFeature(mdtPaginationHelperFactory, mdtAjaxPaginationHelperFactory){
        var service = this;

        service.initFeature = initFeature;
        service.startFeature = startFeature;
Severity: Minor
Found in app/modules/main/features/PaginationFeature.js - About 1 hr to fix

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

            function initFeature(scope, ctrl){
                if(!scope.mdtRowPaginator){
                    ctrl.mdtPaginationHelper = scope.mdtPaginationHelper = mdtPaginationHelperFactory
                        .getInstance(ctrl.dataStorage, scope.paginatedRows, scope.mdtRow);
                }else{
    Severity: Minor
    Found in app/modules/main/features/PaginationFeature.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status