Preparing report...

Report for github.com/spiral/goridge

A+    Excellent!    Found 13 issues across 21 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!


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!


golint66%

Golint is a linter for Go source code.

    • goridge/pkg/frame/frame.go
    • Line 80: warning: comment on exported method Frame.WriteVersion should be of the form "WriteVersion ..." (golint)
    • Line 93: warning: comment on exported method Frame.ReadHL should be of the form "ReadHL ..." (golint)
    • Line 111: warning: comment on exported method Frame.ReadFlags should be of the form "ReadFlags ..." (golint)
    • Line 117: warning: exported method Frame.WriteFlags should have comment or be unexported (golint)
    • Line 124: warning: comment on exported method Frame.WriteOptions should be of the form "WriteOptions ..." (golint)
    • Line 164: warning: comment on exported method Frame.ReadOptions should be of the form "ReadOptions ..." (golint)
    • Line 351: warning: comment on exported method Frame.ReadPayloadLen should be of the form "ReadPayloadLen ..." (golint)
    • Line 360: warning: comment on exported method Frame.WritePayloadLen should be of the form "WritePayloadLen ..." (golint)
    • goridge/pkg/frame/frame_flags.go
    • Line 23: warning: exported type Version should have comment or be unexported (golint)
    • Line 26: warning: exported const VERSION_1 should have comment (or a comment on this block) or be unexported (golint)
    • goridge/pkg/shared_memory/posix/posix_shm.go
    • Line 14: warning: exported type Flag should have comment or be unexported (golint)
    • Line 40: warning: exported const S_IRUSR should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type SharedMemorySegment should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function NewSharedMemorySegment should be of the form "NewSharedMemorySegment ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign61%

IneffAssign detects ineffectual assignments in Go code.

    • goridge/benchmarks/main.go
    • Line 12: warning: no required module provides package github.com/spiral/goridge/v3/test; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/spiral/goridge/v3/test (invalid package name: "") (ineffassign)
    • goridge/pkg/rpc/client_server_test.go
    • Line 12: warning: no required module provides package github.com/spiral/goridge/v3/test; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/spiral/goridge/v3/test (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!