jonshaffer/angular-data-table

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

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 3 total issues

Function ResizableDirective has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function ResizableDirective($document, $timeout) {
return {
restrict: 'A',
scope: {
isResizable: '=resizable',
Severity: Major
Found in src/components/header/ResizableDirective.js - About 2 hrs to fix

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

link($scope, $element) {
if ($scope.isResizable) {
$element.addClass('resizable');
}
 
 
Severity: Minor
Found in src/components/header/ResizableDirective.js - About 1 hr to fix

Function ResizableDirective has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

export default function ResizableDirective($document, $timeout) {
return {
restrict: 'A',
scope: {
isResizable: '=resizable',
Severity: Minor
Found in src/components/header/ResizableDirective.js - About 1 hr to fix
Category
Status