GladysProject/Gladys

View on GitHub
server/services/lan-manager/lib/lan-manager.transformDevice.js

Summary

Maintainability
A
1 hr
Test Coverage

Function transformDevice has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function transformDevice(device) {
  const { mac, hostname, ip, vendor } = device;
  const deviceExternalId = `lan-manager:${mac.replaceAll(':', '').toLowerCase()}`;

  const params = [];
Severity: Minor
Found in server/services/lan-manager/lib/lan-manager.transformDevice.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status