Preparing report...

Report for github.com/joinself/self-go-sdk

A+    Excellent!    Found 14 issues across 60 files

Tweet

gofmt96%

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!


gocyclo90%

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.


golint90%

Golint is a linter for Go source code.

    • self-go-sdk/pkg/ntp/time.go
    • Line 13: warning: exported var TimeFunc should have comment or be unexported (golint)
    • Line 23: warning: exported function NewTime should have comment or be unexported (golint)
    • Line 29: warning: exported method Time.Now should have comment or be unexported (golint)
    • self-go-sdk/fact/request.go
    • Line 22: warning: exported var ErrBadJSONPayload should have comment or be unexported (golint)
    • Line 98: warning: exported type QRConfig should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • self-go-sdk/fact/request_test.go
    • Line 88: warning: ineffectual assignment to err (ineffassign)
    • Line 111: warning: ineffectual assignment to err (ineffassign)
    • Line 285: warning: ineffectual assignment to err (ineffassign)
    • Line 308: warning: ineffectual assignment to err (ineffassign)
    • Line 411: warning: ineffectual assignment to err (ineffassign)
    • Line 434: warning: ineffectual assignment to err (ineffassign)
    • Line 539: warning: ineffectual assignment to err (ineffassign)
    • Line 562: warning: ineffectual assignment to err (ineffassign)
    • Line 667: warning: ineffectual assignment to err (ineffassign)
    • Line 690: warning: ineffectual assignment to err (ineffassign)
    • Line 793: warning: ineffectual assignment to err (ineffassign)
    • Line 816: warning: ineffectual assignment to err (ineffassign)
    • Line 919: warning: ineffectual assignment to err (ineffassign)
    • Line 942: warning: ineffectual assignment to err (ineffassign)
    • Line 1045: warning: ineffectual assignment to err (ineffassign)
    • Line 1068: warning: ineffectual assignment to err (ineffassign)
    • Line 1171: warning: ineffectual assignment to err (ineffassign)
    • Line 1194: warning: ineffectual assignment to err (ineffassign)
    • Line 1297: warning: ineffectual assignment to err (ineffassign)
    • Line 1320: warning: ineffectual assignment to err (ineffassign)

misspell91%

Misspell Finds commonly misspelled English words

    • self-go-sdk/fact/request_test.go
    • Line 1439: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 1676: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 1781: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 1886: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 1991: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 2097: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 2202: warning: "assertation" is a misspelling of "assertion" (misspell)
    • Line 2308: warning: "assertation" is a misspelling of "assertion" (misspell)