Apollon77/daikin-controller

View on GitHub
src/models/responses/BasicInfoResponse.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function parseResponse has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static parseResponse(dict: ResponseDict, cb: DaikinResponseCb<BasicInfoResponse>): void {
        const result = new BasicInfoResponse();
        result.type = DaikinDataParser.resolveString(dict, 'type', Type);
        result.region = DaikinDataParser.resolveString(dict, 'reg');
        result.dst = DaikinDataParser.resolveBool(dict, 'dst');
Severity: Minor
Found in src/models/responses/BasicInfoResponse.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status