Preparing report...

Report for github.com/nathanmkaya/walletAPI

A    Great!    Found 12 issues across 14 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!


golint21%

Golint is a linter for Go source code.

    • walletAPI/pkg/repo/postres/account_repo_test.go
    • Line 34: warning: receiver name s should be consistent with previous receiver name suite for AccountRepoTestSuite (golint)
    • Line 54: warning: receiver name s should be consistent with previous receiver name suite for AccountRepoTestSuite (golint)
    • Line 70: warning: receiver name s should be consistent with previous receiver name suite for AccountRepoTestSuite (golint)
    • Line 81: warning: receiver name s should be consistent with previous receiver name suite for AccountRepoTestSuite (golint)
    • Line 96: warning: receiver name s should be consistent with previous receiver name suite for AccountRepoTestSuite (golint)
    • Line 104: warning: don't use underscores in Go names; var account_updated should be accountUpdated (golint)
    • Line 112: warning: receiver name s should be consistent with previous receiver name suite for AccountRepoTestSuite (golint)
    • walletAPI/pkg/uc/usecase.go
    • Line 7: warning: exported type AccountUsecase should have comment or be unexported (golint)
    • Line 14: warning: exported type TransactionUsecase should have comment or be unexported (golint)
    • walletAPI/pkg/http/rest/handler.go
    • Line 16: warning: exported function Handler should have comment or be unexported (golint)
    • Line 29: warning: exported function GetAccount should have comment or be unexported (golint)
    • Line 46: warning: exported function CreateAccount should have comment or be unexported (golint)
    • Line 70: warning: exported function CheckBalance should have comment or be unexported (golint)
    • Line 87: warning: exported function GetMiniStatement should have comment or be unexported (golint)
    • Line 104: warning: exported type TX should have comment or be unexported (golint)
    • Line 108: warning: exported function Withdraw should have comment or be unexported (golint)
    • Line 144: warning: exported function Deposit should have comment or be unexported (golint)
    • walletAPI/pkg/entity/transaction.go
    • Line 5: warning: exported type TransactionType should have comment or be unexported (golint)
    • Line 8: warning: exported const Deposit should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type Transaction should have comment or be unexported (golint)
    • walletAPI/pkg/uc/account_usecase.go
    • Line 28: warning: receiver name u should be consistent with previous receiver name accountUsecase for ucAccountUsecase (golint)
    • Line 36: warning: receiver name u should be consistent with previous receiver name accountUsecase for ucAccountUsecase (golint)
    • Line 48: warning: exported function NewAccountUsecase should have comment or be unexported (golint)
    • walletAPI/pkg/repo/repository.go
    • Line 9: warning: exported type AccountRepository should have comment or be unexported (golint)
    • Line 17: warning: exported type TransactionRepository should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!