Preparing report...

Report for github.com/rkbalgi/isosim

A+    Excellent!    Found 18 issues across 28 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!


gocyclo78%

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.


golint53%

Golint is a linter for Go source code.

    • isosim/internal/services/websim/endpoints.go
    • Line 13: warning: exported type GetAllSpecsRequest should have comment or be unexported (golint)
    • Line 15: warning: exported type GetAllSpecResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type GetMessages4SpecRequest should have comment or be unexported (golint)
    • Line 21: warning: exported type GetMessages4SpecResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type GetMessageTemplateRequest should have comment or be unexported (golint)
    • Line 31: warning: exported type GetMessageTemplateResponse should have comment or be unexported (golint)
    • Line 36: warning: exported type LoadOrFetchSavedMessagesRequest should have comment or be unexported (golint)
    • Line 42: warning: exported type LoadOrFetchSavedMessagesResponse should have comment or be unexported (golint)
    • Line 50: warning: exported type ParseTraceRequest should have comment or be unexported (golint)
    • Line 56: warning: exported type ParseTraceResponse should have comment or be unexported (golint)
    • Line 61: warning: exported type ParseTraceExtRequest should have comment or be unexported (golint)
    • Line 67: warning: exported type ParseTraceExtResponse should have comment or be unexported (golint)
    • Line 74: warning: exported type SaveMsgRequest should have comment or be unexported (golint)
    • Line 83: warning: exported type SaveMsgResponse should have comment or be unexported (golint)
    • Line 89: warning: exported type SendToHostRequest should have comment or be unexported (golint)
    • Line 98: warning: exported type SendToHostResponse should have comment or be unexported (golint)
    • Line 103: warning: exported method GetAllSpecResponse.Failed should have comment or be unexported (golint)
    • Line 107: warning: exported method GetMessages4SpecResponse.Failed should have comment or be unexported (golint)
    • Line 111: warning: exported method GetMessageTemplateResponse.Failed should have comment or be unexported (golint)
    • Line 114: warning: exported method LoadOrFetchSavedMessagesResponse.Failed should have comment or be unexported (golint)
    • Line 118: warning: exported method ParseTraceExtResponse.Failed should have comment or be unexported (golint)
    • Line 122: warning: exported method ParseTraceResponse.Failed should have comment or be unexported (golint)
    • Line 126: warning: exported method SaveMsgResponse.Failed should have comment or be unexported (golint)
    • Line 130: warning: exported method SendToHostResponse.Failed should have comment or be unexported (golint)
    • isosim/internal/services/crypto/endpoint.go
    • Line 15: warning: exported type PinGenRequest should have comment or be unexported (golint)
    • Line 22: warning: exported type PinGenResponse should have comment or be unexported (golint)
    • Line 27: warning: exported method PinGenResponse.Failed should have comment or be unexported (golint)
    • Line 31: warning: exported type MacGenRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type MacGenResponse should have comment or be unexported (golint)
    • Line 46: warning: exported method MacGenResponse.Failed should have comment or be unexported (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 111: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • isosim/internal/services/websim/service.go
    • Line 24: warning: exported type NetOptions should have comment or be unexported (golint)
    • Line 58: warning: exported function New should have comment or be unexported (golint)
    • Line 147: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 220: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 264: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 302: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 330: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 368: warning: exported function ToJsonList should have comment or be unexported (golint)
    • Line 384: warning: exported type SavedMsg should have comment or be unexported (golint)
    • Line 470: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!