autowp/autowp-frontend

View on GitHub
src/app/catalogue/matcher.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

Function cataloguePathMatcher has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
Open

export function cataloguePathMatcher(url: UrlSegment[]) {
if (url.length <= 0) {
return null;
}
 
 
Severity: Minor
Found in src/app/catalogue/matcher.ts - About 2 hrs to fix

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

export function cataloguePathMatcher(url: UrlSegment[]) {
if (url.length <= 0) {
return null;
}
 
 
Severity: Minor
Found in src/app/catalogue/matcher.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status