iamisti/md-data-table

View on GitHub

Showing 33 of 77 total issues

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

    function mdtAjaxPaginationHelperFactory(ColumnFilterFeature, ColumnSortFeature, PaginatorTypeProvider, _){

        function mdtAjaxPaginationHelper(params){
            this.paginatorType = PaginatorTypeProvider.AJAX;

Severity: Major
Found in app/modules/main/factories/mdtAjaxPaginationHelperFactory.js - About 4 hrs to fix

    Function mdtTableDirective has 122 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function mdtTableDirective(TableDataStorageFactory,
                                   EditCellFeature,
                                   SelectableRowsFeature,
                                   PaginationFeature,
                                   ColumnSelectorFeature,
    Severity: Major
    Found in app/modules/main/directives/mdtTableDirective.js - About 4 hrs to fix

      Function TableDataStorageFactory has 103 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function TableDataStorageFactory($log, _){
      
              function TableDataStorageService(){
                  this.storage = [];
                  this.header = [];
      Severity: Major
      Found in app/modules/main/factories/TableDataStorageFactory.js - About 4 hrs to fix

        Function ColumnSortFeature has 102 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function ColumnSortFeature(ColumnSortDirectionProvider) {
        
                var service = this;
        
                /**
        Severity: Major
        Found in app/modules/main/features/ColumnSortFeature/ColumnSortFeature.js - About 4 hrs to fix

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

              function ColumnFilterFeature(ColumnSortFeature, PaginatorTypeProvider){
          
                  var service = this;
          
                  /**
          Severity: Major
          Found in app/modules/main/features/ColumnFilterFeature/ColumnFilterFeature.js - About 3 hrs to fix

            Function mdtColumnSelectorDirective has 83 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function mdtColumnSelectorDirective(ColumnSelectorFeature, ColumnFilterFeature, PaginatorTypeProvider){
                    return{
                        restrict: 'E',
                        templateUrl: '/main/templates/mdtColumnSelector.html',
                        scope: true,

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

                          link: function($scope, element){
                              ColumnSelectorFeature.positionElement(element);
              
                              $scope.headerRowsData = _.map($scope.dataStorage.header, function(item){
                                  //excluded content should also be in, since we use the index of the array to apply the changes. Do not exclude them.

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

                    function mdtPaginationHelperFactory(PaginatorTypeProvider, _){
                
                        function mdtPaginationHelper(dataStorage, paginationSetting){
                            this.paginatorType = PaginatorTypeProvider.ARRAY;
                
                
                Severity: Major
                Found in app/modules/main/factories/mdtPaginationHelperFactory.js - About 2 hrs to fix

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

                      function mdtCheckboxColumnFilterDirective(_, ColumnFilterFeature, ColumnSortFeature, ColumnSortDirectionProvider){
                          return{
                              restrict: 'E',
                              templateUrl: '/main/templates/mdtCheckboxColumnFilter.html',
                              scope: {

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

                                controller: function mdtTable($scope){
                                    var vm = this;
                    
                                    $scope.rippleEffectCallback = function(){
                                        return $scope.rippleEffect ? $scope.rippleEffect : false;
                    Severity: Minor
                    Found in app/modules/main/directives/mdtTableDirective.js - About 2 hrs to fix

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

                          function ColumnSelectorFeature() {
                      
                              var service = this;
                      
                              /**

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

                                    link: function($scope, element){
                                        ColumnFilterFeature.positionColumnFilterBox(element);
                        
                                        $scope.transformChip = transformChip;
                                        $scope.selectableItems = [];

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

                              function mdtDropdownColumnFilterDirective(ColumnFilterFeature, ColumnSortFeature){
                                  return{
                                      restrict: 'E',
                                      templateUrl: '/main/templates/mdtDropdownColumnFilter.html',
                                      scope: {

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

                                        link: function($scope, element, attrs, ctrl, transclude){
                                            $scope.dataStorage = ctrl.dataStorage;
                            
                                            _injectContentIntoTemplate();
                            
                            
                            Severity: Minor
                            Found in app/modules/main/directives/mdtTableDirective.js - About 1 hr to fix

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

                                          link: function($scope, element){
                                              ColumnFilterFeature.positionColumnFilterBox(element);
                              
                                              $scope.transformChip = transformChip;
                                              $scope.selectedItem = selectedItem;

                                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 EditCellFeature has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function EditCellFeature($mdDialog){
                                  
                                          var service = this;
                                  
                                          service.addRequiredFunctions = function($scope, ctrl){
                                  Severity: Minor
                                  Found in app/modules/main/features/EditCellFeature/EditCellFeature.js - About 1 hr to fix

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

                                        function mdtChipsColumnFilterDirective(_, $timeout, ColumnFilterFeature, ColumnSortFeature){
                                            return{
                                                restrict: 'E',
                                                templateUrl: '/main/templates/mdtChipsColumnFilter.html',
                                                scope: {

                                      Function addRequiredFunctions has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              service.addRequiredFunctions = function($scope, ctrl){
                                      
                                                  $scope.saveRow = function(rowData){
                                                      var rawRowData = ctrl.dataStorage.getSavedRowData(rowData);
                                      
                                      
                                      Severity: Minor
                                      Found in app/modules/main/features/EditCellFeature/EditCellFeature.js - About 1 hr to fix

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

                                            function mdtColumnDirective($interpolate, ColumnFilterFeature, ColumnSortFeature, ColumnSelectorFeature){
                                                return {
                                                    restrict: 'E',
                                                    transclude: true,
                                                    replace: true,
                                        Severity: Minor
                                        Found in app/modules/main/directives/header/mdtColumnDirective.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language