iamisti/mdDataTable

View on GitHub

Showing 33 of 77 total issues

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

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

        function mdtAddHtmlContentToCellDirective($parse, $compile, $rootScope){
            return {
                restrict: 'A',
                require: '^?mdtTable',
                link: function($scope, element, attr, ctrl){

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

                      function _injectContentIntoTemplate(){
                          transclude(function (clone) {
                              var headings = [];
                              var body = [];
                              var customCell = [];
      Severity: Minor
      Found in app/modules/main/directives/mdtTableDirective.js - About 1 hr to fix

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

                    $scope.showEditDialog = function(ev, cellData, rowData){
                        var rect = ev.currentTarget.closest('td').getBoundingClientRect();
                        var position = {
                            top: rect.top,
                            left: rect.left
        Severity: Minor
        Found in app/modules/main/features/EditCellFeature/EditCellFeature.js - About 1 hr to fix

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

              function InlineEditModalCtrl($scope, position, cellData, mdtTranslations, $timeout, $mdDialog){
          Severity: Minor
          Found in app/modules/main/controllers/InlineEditModalCtrl.js - About 45 mins to fix

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

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

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

                          link: function($scope, element, attrs, mdtCtrl, transclude){
              Severity: Minor
              Found in app/modules/main/directives/header/mdtHeaderRowDirective.js - About 35 mins to fix

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

                                pre: function($scope, element, attrs, ctrl, transclude){
                Severity: Minor
                Found in app/modules/main/directives/helpers/mdtCustomCellDirective.js - About 35 mins to fix

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

                              link: function ($scope, element, attrs, ctrl, transclude) {
                  Severity: Minor
                  Found in app/modules/main/directives/header/mdtColumnDirective.js - About 35 mins to fix

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

                            mdtAjaxPaginationHelper.prototype.setRawDataToStorage = function(that, data, tableRowIdKey, columnKeys, rowOptions){
                    Severity: Minor
                    Found in app/modules/main/factories/mdtAjaxPaginationHelperFactory.js - About 35 mins to fix

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

                                  link: function($scope, element, attrs, ctrl, transclude){
                      Severity: Minor
                      Found in app/modules/main/directives/mdtTableDirective.js - About 35 mins to fix

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

                                    link: function($scope, element, attr, mdtRowCtrl, transclude){
                        Severity: Minor
                        Found in app/modules/main/directives/body/mdtCellDirective.js - About 35 mins to fix

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

                                      link: function($scope, element, attrs, ctrl, transclude){
                          Severity: Minor
                          Found in app/modules/main/directives/body/mdtRowDirective.js - About 35 mins to fix
                            Severity
                            Category
                            Status
                            Source
                            Language