Preparing report...

Report for github.com/RaniSputnik/sqrl-go

A+    Excellent!    Found 14 issues across 35 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!


golint65%

Golint is a linter for Go source code.

    • sqrl-go/transaction.go
    • Line 12: warning: comment on exported var ErrInvalidServer should be of the form "ErrInvalidServer ..." (golint)
    • Line 132: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • sqrl-go/client/client.go
    • Line 19: warning: exported var ErrUriInvalid should have comment or be unexported (golint)
    • Line 22: warning: exported var HttpClient should have comment or be unexported (golint)
    • Line 28: warning: exported function Login should have comment or be unexported (golint)
    • Line 32: warning: exported type Client should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.Login should have comment or be unexported (golint)
    • sqrl-go/ssp/ssp.go
    • Line 10: warning: exported type Logger should have comment or be unexported (golint)
    • Line 16: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 18: warning: exported type Server should have comment or be unexported (golint)
    • Line 31: warning: exported function Configure should have comment or be unexported (golint)
    • Line 51: warning: exported method Server.WithStore should have comment or be unexported (golint)
    • Line 56: warning: exported method Server.WithTokenExchange should have comment or be unexported (golint)
    • Line 61: warning: exported method Server.WithLogger should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.WithAuthentication should have comment or be unexported (golint)
    • Line 84: warning: exported method Server.Nut should have comment or be unexported (golint)
    • sqrl-go/ssp/store.go
    • Line 9: warning: exported type TransactionStore should have comment or be unexported (golint)
    • Line 29: warning: exported type UserStore should have comment or be unexported (golint)
    • Line 42: warning: exported type User should have comment or be unexported (golint)
    • Line 48: warning: exported type Store should have comment or be unexported (golint)
    • sqrl-go/ssp/token.go
    • Line 16: warning: exported type Token should have comment or be unexported (golint)
    • Line 18: warning: exported type TokenGenerator should have comment or be unexported (golint)
    • Line 22: warning: exported type TokenValidator should have comment or be unexported (golint)
    • Line 26: warning: exported type TokenExchange should have comment or be unexported (golint)
    • Line 36: warning: comment on exported function DefaultExchange should be of the form "DefaultExchange ..." (golint)
    • Line 65: warning: exported var ErrTokenExpired should have comment or be unexported (golint)
    • Line 69: warning: receiver name e should be consistent with previous receiver name g for defaultExchange (golint)
    • Line 84: warning: receiver name e should be consistent with previous receiver name g for defaultExchange (golint)
    • Line 93: warning: receiver name e should be consistent with previous receiver name g for defaultExchange (golint)
    • sqrl-go/ssp/handler.go
    • Line 96: 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)

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!


misspell91%

Misspell Finds commonly misspelled English words