Preparing report...

Report for github.com/go-ap/auth

B    Not bad!    Found 14 issues across 17 files

Tweet

gofmt41%

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!


gocyclo94%

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.


golint41%

Golint is a linter for Go source code.

    • auth/internal/log/log.go
    • Line 5: warning: exported type LoggerFn should have comment or be unexported (golint)
    • Line 14: warning: exported function LogFn should have comment or be unexported (golint)
    • Line 21: warning: exported function ErrFn should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported var EmptyLogFn should have comment or be unexported (golint)
    • auth/fs/fs.go
    • Line 70: warning: exported type Config should have comment or be unexported (golint)
    • auth/sqlite/sqlite.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 45: warning: exported type Config should have comment or be unexported (golint)
    • Line 142: warning: exported function Bootstrap should have comment or be unexported (golint)
    • auth/server.go
    • Line 14: warning: exported type Account should have comment or be unexported (golint)
    • Line 16: warning: exported method Account.IsLogged should have comment or be unexported (golint)
    • Line 26: warning: exported type Server should have comment or be unexported (golint)
    • Line 38: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.Routes should have comment or be unexported (golint)
    • auth/pgx/pgx.go
    • Line 49: warning: exported type Config should have comment or be unexported (golint)
    • Line 86: warning: exported function Bootstrap should have comment or be unexported (golint)
    • auth/boltdb/boltdb.go
    • Line 64: warning: exported type Config should have comment or be unexported (golint)
    • Line 71: warning: exported function Bootstrap should have comment or be unexported (golint)
    • auth/handlers.go
    • Line 13: warning: exported method Server.Redirect should have comment or be unexported (golint)
    • Line 25: warning: exported method Server.Authorize should have comment or be unexported (golint)
    • Line 42: warning: comment on exported method Server.Token should be of the form "Token ..." (golint)
    • Line 96: warning: exported method Server.ValidateLoggedIn should have comment or be unexported (golint)
    • auth/middleware.go
    • Line 22: warning: exported var AnonymousActor should have comment or be unexported (golint)
    • Line 162: warning: error should be the last type when returning multiple items (golint)
    • Line 217: warning: comment on exported type CtxtKey should be of the form "CtxtKey ..." (with optional leading article) (golint)
    • Line 220: warning: comment on exported var ActorKey should be of the form "ActorKey ..." (golint)
    • Line 223: warning: comment on exported function ActorContext should be of the form "ActorContext ..." (golint)
    • auth/oauth.go
    • Line 10: warning: exported function New 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!