RomainMarecat/slate

View on GitHub
src/shared/util/object.service.ts

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

Function bubbleSort has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

bubbleSort(items: Array<any>, column?: string): Array<any> {
const length = items.length;
for (let i = 0; i < length; i++) {
// Number of passes
for (let j = 0; j < (length - i - 1); j++) {
Severity: Minor
Found in src/shared/util/object.service.ts - About 25 mins to fix

There are no issues that match your filters.

Category
Status