iamisti/mdDataTable

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

Summary

Maintainability
A
3 hrs
Test Coverage

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 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 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

        There are no issues that match your filters.

        Category
        Status