jonshaffer/angular-data-table

View on GitHub
src/components/header/HeaderDirective.js

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 2 of 2 total issues

Function HeaderDirective has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function HeaderDirective($timeout) {
return {
restrict: 'E',
controller: HeaderController,
controllerAs: 'header',
Severity: Major
Found in src/components/header/HeaderDirective.js - About 3 hrs to fix

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

link($scope, $elm, $attrs, ctrl) {
$scope.columnsResorted = function columnsResorted(event, columnId) {
const col = findColumnById(columnId);
const parent = angular.element(event.currentTarget);
 
 
Severity: Minor
Found in src/components/header/HeaderDirective.js - About 1 hr to fix
Category
Status