Preparing report...

Report for github.com/mmichaelb/gosharexserver

(v0.0.0-20211202230645-d05b2d467eb6)

A+    Excellent!    Found 11 issues across 27 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!


golint59%

Golint is a linter for Go source code.

    • pkg/postgresminio/fileservice.go
    • Line 25: warning: exported method Service.Store should have comment or be unexported (golint)
    • Line 76: warning: exported method Service.Request should have comment or be unexported (golint)
    • Line 108: warning: exported method Service.Delete should have comment or be unexported (golint)
    • pkg/user.go
    • Line 46: warning: exported var ErrUserAlreadyExists should have comment or be unexported (golint)
    • internal/app/app.go
    • Line 22: warning: exported var GitBranch should have comment or be unexported (golint)
    • Line 31: warning: exported function RunApp 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 44: warning: exported method Service.CheckPassword should have comment or be unexported (golint)
    • Line 71: warning: exported method Service.UpdateUsername should have comment or be unexported (golint)
    • Line 82: warning: exported method Service.ResolveAuthorizationToken should have comment or be unexported (golint)
    • Line 94: warning: exported method Service.RefreshAuthorizationToken should have comment or be unexported (golint)
    • Line 110: warning: exported method Service.ListUsers should have comment or be unexported (golint)
    • Line 130: warning: exported method Service.GetUserByAuthorizationToken should have comment or be unexported (golint)
    • Line 143: warning: exported method Service.GetUserByUsername should have comment or be unexported (golint)
    • Line 155: warning: exported method Service.DeleteUser should have comment or be unexported (golint)
    • Line 161: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 166: 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!