Apollon77/daikin-controller

View on GitHub
src/DaikinACRequest.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function doPost has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public doPost(url: string, parameters: { [key: string]: any }, callback: ResponseHandler) {
        if (this.useGetToPost) {
            this.doGet(url, parameters, callback);
            return;
        }
Severity: Minor
Found in src/DaikinACRequest.ts - About 1 hr to fix

    Function doGet has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public doGet(url: string, parameters: RequestDict, callback: ResponseHandler) {
            const reqParams = Object.assign({}, this.defaultParameters, parameters);
    
            const data: any = {
                parameters: reqParams,
    Severity: Minor
    Found in src/DaikinACRequest.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status