Preparing report...

Report for github.com/mmichaelb/distrybute

(v0.0.0-20211221011320-2a95e5c97d88)

A+    Excellent!    Found 12 issues across 30 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!


golint60%

Golint is a linter for Go source code.

    • internal/util/general_app.go
    • Line 9: warning: exported var GitBranch should have comment or be unexported (golint)
    • Line 15: warning: exported var Authors should have comment or be unexported (golint)
    • Line 16: warning: exported var GeneralApp should have comment or be unexported (golint)
    • pkg/user.go
    • Line 46: warning: exported var ErrUserAlreadyExists should have comment or be unexported (golint)
    • pkg/postgresminio/fileservice.go
    • Line 25: warning: exported method Service.Store should have comment or be unexported (golint)
    • Line 81: warning: exported method Service.Request should have comment or be unexported (golint)
    • Line 118: warning: exported method Service.Delete should have comment or be unexported (golint)
    • pkg/postgresminio/service.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported type Service should have comment or be unexported (golint)
    • Line 41: warning: exported method Service.Init should have comment or be unexported (golint)
    • Line 86: warning: exported function NewService should have comment or be unexported (golint)
    • pkg/postgresminio/user.go
    • Line 14: warning: exported method Service.CreateNewUser should have comment or be unexported (golint)
    • Line 49: warning: exported method Service.CheckPassword should have comment or be unexported (golint)
    • Line 81: warning: exported method Service.UpdateUsername should have comment or be unexported (golint)
    • Line 97: warning: exported method Service.ResolveAuthorizationToken should have comment or be unexported (golint)
    • Line 114: warning: exported method Service.RefreshAuthorizationToken should have comment or be unexported (golint)
    • Line 135: warning: exported method Service.ListUsers should have comment or be unexported (golint)
    • Line 160: warning: exported method Service.GetUserByAuthorizationToken should have comment or be unexported (golint)
    • Line 178: warning: exported method Service.GetUserByUsername should have comment or be unexported (golint)
    • Line 195: warning: exported method Service.DeleteUser should have comment or be unexported (golint)
    • Line 206: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 211: warning: exported method Service.UpdatePassword 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!