Preparing report...

Report for github.com/erickoliv/finances-api

A    Great!    Found 23 issues across 52 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!


golint57%

Golint is a linter for Go source code.

    • finances-api/internal/app.go
    • Line 22: warning: exported type App should have comment or be unexported (golint)
    • Line 27: warning: exported type Router should have comment or be unexported (golint)
    • Line 32: warning: exported function Run should have comment or be unexported (golint)
    • finances-api/categories/mocks/entities.go
    • Line 12: warning: exported function ValidCompleteCategory should have comment or be unexported (golint)
    • Line 23: warning: exported function ValidCategoryWithoutDescription should have comment or be unexported (golint)
    • Line 33: warning: exported function InvalidValidCategoryWithoutName should have comment or be unexported (golint)
    • Line 43: warning: exported function ValidCategories should have comment or be unexported (golint)
    • Line 51: warning: exported const ValidCategoryPayload should have comment or be unexported (golint)
    • finances-api/accounts/mocks/entities.go
    • Line 12: warning: exported function ValidCompleteAccount should have comment or be unexported (golint)
    • Line 23: warning: exported function ValidAccountWithoutDescription should have comment or be unexported (golint)
    • Line 33: warning: exported function ValidAccountWithoutName should have comment or be unexported (golint)
    • Line 43: warning: exported function ValidAcccounts should have comment or be unexported (golint)
    • Line 49: warning: exported const ValidAccountPayload should have comment or be unexported (golint)
    • finances-api/auth/authsql/auth.go
    • Line 11: warning: exported type AuthRepo should have comment or be unexported (golint)
    • Line 28: warning: exported method AuthRepo.Login should have comment or be unexported (golint)
    • Line 46: warning: exported method AuthRepo.Register should have comment or be unexported (golint)
    • finances-api/pkg/jwtsession/jwt.go
    • Line 10: warning: exported function NewJWTSigner should have comment or be unexported (golint)
    • Line 17: warning: exported method JWTSigner.SignUser should have comment or be unexported (golint)
    • Line 35: warning: exported method JWTSigner.Validate should have comment or be unexported (golint)
    • finances-api/categories/categorysql/category.go
    • Line 14: warning: exported type CategoryRepo should have comment or be unexported (golint)
    • Line 18: warning: exported function BuildRepository should have comment or be unexported (golint)
    • Line 24: warning: exported method CategoryRepo.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method CategoryRepo.Query should have comment or be unexported (golint)
    • Line 47: warning: exported method CategoryRepo.Save should have comment or be unexported (golint)
    • Line 58: warning: exported method CategoryRepo.Delete should have comment or be unexported (golint)
    • finances-api/entries/mocks/entities.go
    • Line 12: warning: exported function ValidCompleteEntry should have comment or be unexported (golint)
    • Line 23: warning: exported function ValidEntryWithoutDescription should have comment or be unexported (golint)
    • Line 38: warning: exported function InvalidValidEntryWithoutName should have comment or be unexported (golint)
    • Line 53: warning: exported function ValidEntries should have comment or be unexported (golint)
    • Line 61: warning: exported const ValidEntryPayload should have comment or be unexported (golint)
    • finances-api/accounts/accountsql/crud.go
    • Line 14: warning: exported type Repository should have comment or be unexported (golint)
    • Line 18: warning: exported function MakeAccounts should have comment or be unexported (golint)
    • Line 24: warning: exported method Repository.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method Repository.Query should have comment or be unexported (golint)
    • Line 47: warning: exported method Repository.Save should have comment or be unexported (golint)
    • Line 55: warning: exported method Repository.Delete should have comment or be unexported (golint)
    • finances-api/entries/entrysql/crud.go
    • Line 14: warning: exported type Repository should have comment or be unexported (golint)
    • Line 18: warning: exported function BuildRepository should have comment or be unexported (golint)
    • Line 24: warning: exported method Repository.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method Repository.Query should have comment or be unexported (golint)
    • Line 47: warning: exported method Repository.Save should have comment or be unexported (golint)
    • Line 58: warning: exported method Repository.Delete should have comment or be unexported (golint)
    • finances-api/tags/tagsql/crud.go
    • Line 14: warning: exported type Repository should have comment or be unexported (golint)
    • Line 18: warning: exported function BuildTagRepository should have comment or be unexported (golint)
    • Line 24: warning: exported method Repository.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method Repository.Query should have comment or be unexported (golint)
    • Line 47: warning: exported method Repository.Save should have comment or be unexported (golint)
    • Line 58: warning: exported method Repository.Delete should have comment or be unexported (golint)
    • finances-api/tags/mocks/entities.go
    • Line 12: warning: exported function ValidCompleteTag should have comment or be unexported (golint)
    • Line 23: warning: exported function ValidTagWithoutDescription should have comment or be unexported (golint)
    • Line 33: warning: exported function InvalidValidTagWithoutName should have comment or be unexported (golint)
    • Line 43: warning: exported function ValidTags should have comment or be unexported (golint)
    • Line 49: warning: exported const ValidTagPayload should have comment or be unexported (golint)
    • finances-api/internal/cfg/config.go
    • Line 10: warning: exported type Database should have comment or be unexported (golint)
    • Line 19: warning: exported type Auth should have comment or be unexported (golint)
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: exported function Load should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell98%

Misspell Finds commonly misspelled English words