fh1ch/node-bacstack

View on GitHub
lib/bvlc.js

Summary

Maintainability
A
1 hr
Test Coverage

Function decode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports.decode = (buffer, offset) => {
  let len;
  const func = buffer[1];
  const msgLength = (buffer[2] << 8) | (buffer[3] << 0);
  if (buffer[0] !== baEnum.BVLL_TYPE_BACNET_IP || buffer.length !== msgLength) return;
Severity: Minor
Found in lib/bvlc.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    'use strict';
    Severity: Minor
    Found in lib/bvlc.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status