IBM/node-celery-ts

View on GitHub
src/uri.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function addHostUserAndPass has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const addHostUserAndPass = (uri: RawUri, parsing: Uri): Uri => {
    const withUser = addHostAndUser(uri, parsing);

    if (isNullOrUndefined(withUser.authority)) {
        return withUser;
Severity: Minor
Found in src/uri.ts - About 1 hr to fix

    Function addQuery has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const addQuery = (uri: RawUri, parsing: Uri): Uri => {
        const REGEX: RegExp = // tslint:disable:max-line-length
            /^[A-Za-z\d*-._+%]+=[A-Za-z\d*-._+%]*(?:&[A-Za-z\d*-._+%]+=[A-Za-z\d*-._+%+]*)*$/;
    
        if (isNullOrUndefined(uri.query)) {
    Severity: Minor
    Found in src/uri.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status