XYOracleNetwork/sdk-core-kotlin

View on GitHub
core-android-library/src/main/kotlin/network/xyo/sdkcorekotlin/node/XyoOriginChainCreator.kt

Summary

Maintainability
A
2 hrs
Test Coverage

Method doBoundWitnessWithPipe has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private suspend fun doBoundWitnessWithPipe (handler: XyoNetworkHandler,
                                                startingData: XyoIterableStructure?,
                                                choice: ByteArray): XyoBoundWitness? {

        val options = getBoundWitnessOptions(choice)

    Method boundWitness has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @kotlin.ExperimentalUnsignedTypes
        suspend fun boundWitness (handler: XyoNetworkHandler, procedureCatalogue: XyoProcedureCatalog): XyoBoundWitness? {
            try {
                if (currentBoundWitnessSession != null) {
                    onBoundWitnessEndFailure(XyoBoundWitnessCreationException("Busy - Bound witness in progress"))

      Avoid too many return statements within this method.
      Open

              return null

        There are no issues that match your filters.

        Category
        Status