GladysProject/Gladys

View on GitHub
server/services/broadlink/lib/commands/features/broadlink.switch.js

Summary

Maintainability
A
1 hr
Test Coverage

Function buildFeatures has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function buildFeatures(deviceName, deviceExternalId, broadlinkDevice) {
  const { TYPE, getEnergy } = broadlinkDevice;
  const features = [];

  // check for number of switch features
Severity: Minor
Found in server/services/broadlink/lib/commands/features/broadlink.switch.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status