martinmicunda/employee-scheduling-ui

View on GitHub
src/app/core/resources/abstract-resource-mock.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function init has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    init($httpBackend, localStorageService, route, mockData, mockListData, errorField){
        const patternBase = new RegExp(`\/${route}`);
        const patternGet = new RegExp(`\/${route}\/[a-z]*`);
        const patternId = new RegExp(`\/${route}\/(\\d+|[a-z]*)`);
        const key = route.slice(0, -1);
Severity: Major
Found in src/app/core/resources/abstract-resource-mock.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status