XYOracleNetwork/sdk-core-nodejs

View on GitHub
src/simulation/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function createBlockfromJson has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public createBlockfromJson(boundWitness: {
    [key: string]: any
  }): XyoZigZagBoundWitness | undefined {
    const allKeys = Object.keys(boundWitness)
    if (allKeys.length > 2 || allKeys.length === 0) {
Severity: Minor
Found in src/simulation/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status