Preparing report...

Report for github.com/akornatskyy/sample-blog-api-go

A    Great!    Found 47 issues across 50 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!


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!


golint6%

Golint is a linter for Go source code.

    • sample-blog-api-go/membership/domain/user/models.go
    • Line 8: warning: exported type AuthInfo should have comment or be unexported (golint)
    • Line 14: warning: exported type User should have comment or be unexported (golint)
    • Line 20: warning: exported type Registration should have comment or be unexported (golint)
    • Line 28: warning: exported method AuthInfo.IsSamePassword should have comment or be unexported (golint)
    • Line 33: warning: exported function PasswordHash should have comment or be unexported (golint)
    • sample-blog-api-go/posts/domain/factory.go
    • Line 6: warning: exported type Factory should have comment or be unexported (golint)
    • Line 13: warning: exported function SetFactory should have comment or be unexported (golint)
    • Line 17: warning: exported function PostRepository should have comment or be unexported (golint)
    • sample-blog-api-go/posts/usecase/search/models.go
    • Line 5: warning: exported const PageSize should have comment or be unexported (golint)
    • Line 8: warning: exported type Request should have comment or be unexported (golint)
    • Line 13: warning: exported type Paging should have comment or be unexported (golint)
    • Line 18: warning: exported type Response should have comment or be unexported (golint)
    • sample-blog-api-go/membership/infrastructure/handlers.go
    • Line 15: warning: exported function SignInHandler should have comment or be unexported (golint)
    • Line 39: warning: exported function SignUpHandler should have comment or be unexported (golint)
    • Line 52: warning: exported function SignOutHandler should have comment or be unexported (golint)
    • Line 70: warning: exported function UserHandler should have comment or be unexported (golint)
    • sample-blog-api-go/shared/mock/mock.go
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 20: warning: exported type Post should have comment or be unexported (golint)
    • Line 29: warning: exported type Comment should have comment or be unexported (golint)
    • Line 39: warning: exported var DB should have comment or be unexported (golint)
    • Line 49: warning: exported function Load should have comment or be unexported (golint)
    • sample-blog-api-go/shared/config/config.go
    • Line 20: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported const StrategyMock should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type Config should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • sample-blog-api-go/public/domain/factory.go
    • Line 6: warning: exported type Factory should have comment or be unexported (golint)
    • Line 13: warning: exported function SetFactory should have comment or be unexported (golint)
    • Line 17: warning: exported function QuoteRepository should have comment or be unexported (golint)
    • sample-blog-api-go/shared/security/principal.go
    • Line 3: warning: exported type Principal should have comment or be unexported (golint)
    • Line 7: warning: exported method Principal.MarshalBinary should have comment or be unexported (golint)
    • Line 11: warning: exported method Principal.UnmarshalBinary should have comment or be unexported (golint)
    • Line 16: warning: exported method Principal.IsAuthenticated 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!