Preparing report...

Report for github.com/teachmind/Auth-service

A    Great!    Found 15 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!


golint38%

Golint is a linter for Go source code.

    • Auth-service/internal/app/model/response.go
    • Line 8: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 9: warning: exported var ErrInvalid should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrUnauthorized should have comment or be unexported (golint)
    • Line 12: warning: exported type GenericResponse should have comment or be unexported (golint)
    • Line 18: warning: exported type ErrorDetailsResponse should have comment or be unexported (golint)
    • Auth-service/internal/pkg/postgres/db.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 52: warning: exported method Config.Url should have comment or be unexported (golint)
    • Line 82: warning: exported function RunDatabaseMigration should have comment or be unexported (golint)
    • Line 96: warning: exported function RollbackLatestMigration should have comment or be unexported (golint)
    • Auth-service/internal/app/server/response.go
    • Line 17: warning: exported function SuccessResponse should have comment or be unexported (golint)
    • Line 25: warning: exported function ErrUnprocessableEntityResponse should have comment or be unexported (golint)
    • Line 29: warning: exported function ErrInvalidEntityResponse should have comment or be unexported (golint)
    • Line 33: warning: exported function ErrNotFoundResponse should have comment or be unexported (golint)
    • Line 37: warning: exported function ErrInternalServerResponse should have comment or be unexported (golint)
    • Line 41: warning: exported function ErrUnauthorizedResponse should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!