XYOracleNetwork/sdk-core-kotlin

View on GitHub

Showing 3 of 21 total issues

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
        Severity
        Category
        Status
        Source
        Language