Cooomma/ksm-golang

View on GitHub
ksm/ksm.go

Summary

Maintainability
B
4 hrs
Test Coverage

Function parseTLLVs has 72 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func parseTLLVs(spcPayload []byte) map[uint64]TLLVBlock {
    var m map[uint64]TLLVBlock
    m = make(map[uint64]TLLVBlock)

    for currentOffset := 0; currentOffset < len(spcPayload); {
Severity: Minor
Found in ksm/ksm.go - About 1 hr to fix

    Method Ksm.GenCKC has 70 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (k *Ksm) GenCKC(playback []byte) ([]byte, error) {
        spcv1, err := ParseSPCV1(playback, k.Pub, k.Pri)
        if err != nil {
            return nil, err
        }
    Severity: Minor
    Found in ksm/ksm.go - About 1 hr to fix

      Method Ksm.GenCKC has 13 return statements (exceeds 4 allowed).
      Open

      func (k *Ksm) GenCKC(playback []byte) ([]byte, error) {
          spcv1, err := ParseSPCV1(playback, k.Pub, k.Pri)
          if err != nil {
              return nil, err
          }
      Severity: Major
      Found in ksm/ksm.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status