srveit/insteon-hub2

View on GitHub
lib/allLinkRecord.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createAllLinkRecord has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const createAllLinkRecord = buffer => {
  const flags = parseInt(buffer.substring(0, 2), 16)
  const response = {
    inUse: (0x80 & flags) !== 0,
    isController: (0x40 & flags) !== 0,
Severity: Minor
Found in lib/allLinkRecord.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status