superdesk/superdesk-client-core

View on GitHub
scripts/apps/users/services/UsersService.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function UsersService has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function UsersService(api, $q, notify) {
    var usersService: any = {};

    usersService.usernamePattern = /^[A-Za-z0-9_.'-]+$/;
    usersService.phonePattern = /^(?:(?:0?[1-9][0-9]{8})|(?:(?:\+|00)[1-9][0-9]{9,11}))$/;
Severity: Minor
Found in scripts/apps/users/services/UsersService.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status