Preparing report...

Report for github.com/hackfeed/remrratality

A+    Excellent!    Found 24 issues across 32 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!


gocyclo96%

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.


golint28%

Golint is a linter for Go source code.

    • remrratality/backend/internal/db/user/mongo.go
    • Line 14: warning: exported type MongoClient should have comment or be unexported (golint)
    • Line 18: warning: exported type Options should have comment or be unexported (golint)
    • Line 26: warning: exported type File should have comment or be unexported (golint)
    • Line 31: warning: exported type User should have comment or be unexported (golint)
    • Line 45: warning: exported function NewMongoClient should have comment or be unexported (golint)
    • Line 70: warning: exported method MongoClient.Create should have comment or be unexported (golint)
    • Line 94: warning: exported method MongoClient.Update should have comment or be unexported (golint)
    • remrratality/backend/internal/store/user_repo/mock.go
    • Line 9: warning: exported type UserRepositoryMock should have comment or be unexported (golint)
    • Line 11: warning: exported method UserRepositoryMock.AddUser should have comment or be unexported (golint)
    • Line 15: warning: exported method UserRepositoryMock.GetUser should have comment or be unexported (golint)
    • Line 22: warning: exported method UserRepositoryMock.UpdateUser should have comment or be unexported (golint)
    • remrratality/backend/internal/store/cache_repo/redis.go
    • Line 14: warning: exported type RedisRepo should have comment or be unexported (golint)
    • Line 19: warning: exported function NewRedisRepo should have comment or be unexported (golint)
    • Line 26: warning: exported method RedisRepo.GetMRR should have comment or be unexported (golint)
    • Line 44: warning: exported method RedisRepo.SetMRR should have comment or be unexported (golint)
    • remrratality/backend/internal/store/storage_repo/mock.go
    • Line 10: warning: exported type StorageRepositoryMock should have comment or be unexported (golint)
    • Line 12: warning: exported method StorageRepositoryMock.AddInvoices should have comment or be unexported (golint)
    • Line 19: warning: exported method StorageRepositoryMock.GetInvoicesByPeriod should have comment or be unexported (golint)
    • Line 39: warning: exported method StorageRepositoryMock.DeleteInvoices should have comment or be unexported (golint)
    • remrratality/backend/internal/db/storage/postgres.go
    • Line 13: warning: exported type PostgresClient should have comment or be unexported (golint)
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 25: warning: exported type Invoice should have comment or be unexported (golint)
    • Line 38: warning: exported var AllFields should have comment or be unexported (golint)
    • Line 49: warning: exported function NewPostgresClient should have comment or be unexported (golint)
    • Line 75: warning: exported method PostgresClient.Create should have comment or be unexported (golint)
    • Line 106: warning: exported method PostgresClient.ReadByPeriod should have comment or be unexported (golint)
    • Line 156: warning: exported method PostgresClient.Delete should have comment or be unexported (golint)
    • remrratality/backend/internal/db/cache/redis.go
    • Line 13: warning: exported type RedisClient should have comment or be unexported (golint)
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 29: warning: exported function NewRedisClient should have comment or be unexported (golint)
    • Line 64: warning: exported method RedisClient.Set should have comment or be unexported (golint)
    • Line 68: warning: exported method RedisClient.Get should have comment or be unexported (golint)
    • remrratality/backend/internal/server/models/response.go
    • Line 5: warning: exported type ResponseSuccessLoadFiles should have comment or be unexported (golint)
    • Line 10: warning: exported type ResponseSuccessSaveFileContent should have comment or be unexported (golint)
    • Line 15: warning: exported type ResponseSuccessAuth should have comment or be unexported (golint)
    • Line 22: warning: exported type ResponseSuccessAnalytics should have comment or be unexported (golint)
    • Line 28: warning: exported type Response should have comment or be unexported (golint)
    • remrratality/backend/internal/domain/user.go
    • Line 13: warning: exported type File should have comment or be unexported (golint)
    • Line 18: warning: exported type User should have comment or be unexported (golint)
    • Line 35: warning: exported method User.GenerateTokens should have comment or be unexported (golint)
    • Line 64: warning: exported method User.UpdateTokens should have comment or be unexported (golint)
    • Line 72: warning: exported method User.GetExpirationTime should have comment or be unexported (golint)
    • Line 91: warning: exported method User.HashPassword should have comment or be unexported (golint)
    • Line 100: warning: exported method User.VerifyPassword 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!