XYOracleNetwork/sdk-core-nodejs

View on GitHub
src/object-model/xyo-structure.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function encode has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static encode(schema: XyoSchema, value: XyoBuffer): XyoBuffer {
    const bestSize = XyoSizeUtil.getBestSize(value.getSize())
    const header = Buffer.alloc(2 + bestSize.valueOf())
    const size = value.getSize() + bestSize.valueOf()
    const optimizedSchema = XyoSchema.create(
Severity: Minor
Found in src/object-model/xyo-structure.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status