jonshaffer/angular-data-table

View on GitHub
src/components/body/CellDirective.js

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 4 total issues

Function CellDirective has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function CellDirective($rootScope, $compile) {
return {
restrict: 'E',
controller: CellController,
scope: true,
Severity: Major
Found in src/components/body/CellDirective.js - About 2 hrs to fix

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

compile() {
return {
pre($scope, $elm, $attrs, ctrl) {
const content = angular.element($elm[0].querySelector('.dt-cell-content'));
 
 
Severity: Minor
Found in src/components/body/CellDirective.js - About 1 hr to fix

Function pre has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

pre($scope, $elm, $attrs, ctrl) {
const content = angular.element($elm[0].querySelector('.dt-cell-content'));
 
let cellScope;
 
 
Severity: Minor
Found in src/components/body/CellDirective.js - About 1 hr to fix

Similar blocks of code found in 2 locations. Consider refactoring.
Invalid

bindToController: {
options: '=',
value: '=',
selected: '=',
column: '=',
Severity: Minor
Found in src/components/body/CellDirective.js and 1 other location - About 50 mins to fix
src/components/body/RowDirective.js on lines 10..20

There are no issues that match your filters.

Category
Status