Preparing report...

Report for github.com/go-gnss/ntrip

A+    Excellent!    Found 6 issues across 16 files

Tweet

gofmt93%

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


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!


gocyclo100%

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.

No problems detected. Good job!


golint68%

Golint is a linter for Go source code.

    • ntrip/internal/inmemory/auth.go
    • Line 3: warning: exported type Action should have comment or be unexported (golint)
    • Line 6: warning: exported const PublishAction should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type Authoriser should have comment or be unexported (golint)
    • ntrip/internal/inmemory/service.go
    • Line 20: warning: exported function NewSourceService should have comment or be unexported (golint)
    • Line 27: warning: exported method SourceService.GetSourcetable should have comment or be unexported (golint)
    • Line 32: warning: exported method SourceService.Publisher should have comment or be unexported (golint)
    • Line 78: warning: exported method SourceService.Subscriber should have comment or be unexported (golint)
    • ntrip/client.go
    • Line 21: warning: comment on exported function NewClientV1 should be of the form "NewClientV1 ..." (golint)
    • ntrip/ntrip.go
    • Line 8: warning: exported const NTRIPVersionHeaderKey should have comment (or a comment on this block) or be unexported (golint)
    • ntrip/internal/mock/service.go
    • Line 12: warning: exported const MountName should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function NewMockSourceService should have comment or be unexported (golint)
    • Line 44: warning: exported method MockSourceService.GetSourcetable should have comment or be unexported (golint)
    • Line 48: warning: exported method MockSourceService.Subscriber should have comment or be unexported (golint)
    • Line 64: warning: exported method MockSourceService.Publisher 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!


misspell93%

Misspell Finds commonly misspelled English words