ksm/ksm.go
Function parseTLLVs
has 72 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func parseTLLVs(spcPayload []byte) map[uint64]TLLVBlock {
var m map[uint64]TLLVBlock
m = make(map[uint64]TLLVBlock)
for currentOffset := 0; currentOffset < len(spcPayload); {
Method Ksm.GenCKC
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (k *Ksm) GenCKC(playback []byte) ([]byte, error) {
spcv1, err := ParseSPCV1(playback, k.Pub, k.Pri)
if err != nil {
return nil, err
}
Method Ksm.GenCKC
has 13 return statements (exceeds 4 allowed). Open
Open
func (k *Ksm) GenCKC(playback []byte) ([]byte, error) {
spcv1, err := ParseSPCV1(playback, k.Pub, k.Pri)
if err != nil {
return nil, err
}