jonshaffer/angular-data-table

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

Summary

Maintainability
C
7 hrs
Test Coverage

Showing 3 of 3 total issues

Function SortableDirective has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

export default function SortableDirective() {
return {
restrict: 'A',
scope: {
isSortable: '=sortable',
Severity: Minor
Found in src/components/header/SortableDirective.js - About 3 hrs to fix

Function SortableDirective has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function SortableDirective() {
return {
restrict: 'A',
scope: {
isSortable: '=sortable',
Severity: Major
Found in src/components/header/SortableDirective.js - About 2 hrs to fix

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

link($scope, $element) {
let dragEl;
let nextEl;
 
function isbefore(a, b) {
Severity: Minor
Found in src/components/header/SortableDirective.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status