Preparing report...

Report for github.com/stts-se/segment_checker

(v0.0.0-20210217131412-9b7308a631f4)

A+    Excellent!    Found 5 issues across 12 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo75%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • dbapi/dbapi.go
    • Line 443: warning: cyclomatic complexity 29 of function (*DBAPI).GetNextSegment() is high (> 15) (gocyclo)

golint58%

Golint is a linter for Go source code.

    • protocol/payload.go
    • Line 7: warning: exported type SourcePayload should have comment or be unexported (golint)
    • Line 13: warning: exported type SegmentPayload should have comment or be unexported (golint)
    • Line 20: warning: exported type SplitRequestPayload should have comment or be unexported (golint)
    • Line 30: warning: exported type Chunk should have comment or be unexported (golint)
    • Line 37: warning: exported type AudioChunk should have comment or be unexported (golint)
    • Line 45: warning: exported method AudioChunk.PrettyMarshal should have comment or be unexported (golint)
    • Line 53: warning: exported type Status should have comment or be unexported (golint)
    • Line 59: warning: exported type AnnotationPayload should have comment or be unexported (golint)
    • Line 68: warning: exported method AnnotationPayload.SetCurrentStatus should have comment or be unexported (golint)
    • Line 75: warning: exported type UnlockPayload should have comment or be unexported (golint)
    • dbapi/dbapi.go
    • Line 24: warning: exported type DBAPI should have comment or be unexported (golint)
    • Line 35: warning: exported function NewDBAPI should have comment or be unexported (golint)
    • Line 51: warning: exported method DBAPI.ProjectName should have comment or be unexported (golint)
    • Line 55: warning: exported method DBAPI.LoadData should have comment or be unexported (golint)
    • Line 177: warning: exported method DBAPI.TestURLAccess should have comment or be unexported (golint)
    • Line 230: warning: exported method DBAPI.LoadSourceData should have comment or be unexported (golint)
    • Line 259: warning: exported method DBAPI.LoadAnnotationData should have comment or be unexported (golint)
    • Line 286: warning: exported method DBAPI.ListUncheckedSegments should have comment or be unexported (golint)
    • Line 296: warning: exported method DBAPI.Unlock should have comment or be unexported (golint)
    • Line 311: warning: exported method DBAPI.UnlockAll should have comment or be unexported (golint)
    • Line 325: warning: exported method DBAPI.Locked should have comment or be unexported (golint)
    • Line 332: warning: exported method DBAPI.Lock should have comment or be unexported (golint)
    • Line 344: warning: exported method DBAPI.CheckedSegmentStats should have comment or be unexported (golint)
    • Line 369: warning: exported method DBAPI.Stats should have comment or be unexported (golint)
    • Line 392: warning: exported const StatusUnchecked should have comment (or a comment on this block) or be unexported (golint)
    • Line 531: warning: exported method DBAPI.Save should have comment or be unexported (golint)
    • cmd/app_server/main.go
    • Line 26: warning: exported type ClientID should have comment or be unexported (golint)
    • Line 46: warning: exported type AnnotationUnlockAndQueryPayload should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!