core/client/api.js

Summary

Maintainability
D
2 days
Test Coverage

Showing 3 of 3 total issues

Function createClient has a Cognitive Complexity of 103 (exceeds 20 allowed). Consider refactoring.
Open

export async function createClient (config) {
// Setup log level
if (_.get(configuration, 'logs.level')) {
logger.setLevel(_.get(configuration, 'logs.level'), false)
} else {
Severity: Minor
Found in core/client/api.js - About 1 day to fix

Function createClient has 265 lines of code (exceeds 50 allowed). Consider refactoring.
Open

export async function createClient (config) {
// Setup log level
if (_.get(configuration, 'logs.level')) {
logger.setLevel(_.get(configuration, 'logs.level'), false)
} else {
Severity: Major
Found in core/client/api.js - About 1 day to fix

    FIXME found
    Open

    // FIXME: this should not be hard-coded as it depends on the service
    Severity: Minor
    Found in core/client/api.js by fixme
    Category
    Status