Preparing report...

Report for github.com/totoval/mindav

A+    Excellent!    Found 46 issues across 55 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!


golint16%

Golint is a linter for Go source code.

    • mindav/database/migrations/create_user_table_1548750742.go
    • Line 15: warning: exported type User should have comment or be unexported (golint)
    • Line 26: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 30: warning: exported type CreateUserTable1548750742 should have comment or be unexported (golint)
    • Line 35: warning: exported method CreateUserTable1548750742.Up should have comment or be unexported (golint)
    • Line 40: warning: exported method CreateUserTable1548750742.Down should have comment or be unexported (golint)
    • mindav/app/logics/mindav/driver/miniofs/interfaces.go
    • Line 11: warning: exported type MinioClienter should have comment or be unexported (golint)
    • Line 18: warning: exported type MinioLser should have comment or be unexported (golint)
    • Line 23: warning: exported type MinioUploader should have comment or be unexported (golint)
    • Line 31: warning: exported type MinioStater should have comment or be unexported (golint)
    • Line 34: warning: exported type MinioGetter should have comment or be unexported (golint)
    • mindav/database/migrations/create_failed_queue_table_1556612225.go
    • Line 15: warning: exported type FailedQueue should have comment or be unexported (golint)
    • Line 34: warning: exported method FailedQueue.TableName should have comment or be unexported (golint)
    • Line 38: warning: exported type CreateFailedQueueTable1556612225 should have comment or be unexported (golint)
    • Line 43: warning: exported method CreateFailedQueueTable1556612225.Up should have comment or be unexported (golint)
    • Line 48: warning: exported method CreateFailedQueueTable1556612225.Down should have comment or be unexported (golint)
    • mindav/app/models/failed_queue.go
    • Line 14: warning: exported type FailedQueue should have comment or be unexported (golint)
    • Line 33: warning: exported method FailedQueue.TableName should have comment or be unexported (golint)
    • Line 36: warning: exported method FailedQueue.RetryTopic should have comment or be unexported (golint)
    • Line 40: warning: exported method FailedQueue.RetryChannel should have comment or be unexported (golint)
    • Line 44: warning: exported method FailedQueue.RetryRetries should have comment or be unexported (golint)
    • Line 48: warning: exported method FailedQueue.RetryDelay should have comment or be unexported (golint)
    • Line 52: warning: exported method FailedQueue.RetryParamProtoBytes should have comment or be unexported (golint)
    • Line 55: warning: exported method FailedQueue.RetryHash should have comment or be unexported (golint)
    • Line 59: warning: exported method FailedQueue.Default should have comment or be unexported (golint)
    • Line 63: warning: exported method FailedQueue.FailedToDatabase should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method FailedQueue.FailedQueueById should be of the form "FailedQueueById ..." (golint)
    • Line 105: warning: exported method FailedQueue.DeleteQueueById should have comment or be unexported (golint)
    • Line 113: warning: exported method FailedQueue.DeleteAll should have comment or be unexported (golint)
    • Line 118: warning: exported method FailedQueue.ObjArr should have comment or be unexported (golint)
    • Line 125: warning: exported method FailedQueue.ObjArrPaginate should have comment or be unexported (golint)
    • mindav/app/jobs/example.go
    • Line 15: warning: exported type ExampleJob should have comment or be unexported (golint)
    • Line 19: warning: exported method ExampleJob.Retries should have comment or be unexported (golint)
    • Line 23: warning: exported method ExampleJob.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method ExampleJob.ParamProto should have comment or be unexported (golint)
    • Line 31: warning: exported method ExampleJob.Handle should have comment or be unexported (golint)
    • mindav/app/http/controllers/user.go
    • Line 19: warning: exported type User should have comment or be unexported (golint)
    • Line 23: warning: exported method User.LogOut should have comment or be unexported (golint)
    • Line 32: warning: exported method User.Info should have comment or be unexported (golint)
    • Line 48: warning: exported method User.AllUser should have comment or be unexported (golint)
    • Line 59: warning: exported method User.PaginateUser should have comment or be unexported (golint)
    • Line 70: warning: exported method User.Update should have comment or be unexported (golint)
    • Line 97: warning: exported method User.Delete should have comment or be unexported (golint)
    • Line 110: warning: exported method User.DeleteTransaction should have comment or be unexported (golint)
    • Line 133: warning: exported method User.Restore should have comment or be unexported (golint)
    • mindav/app/logics/mindav/driver/miniofs/minio.go
    • Line 19: warning: exported const KEEP_FILE_NAME should have comment or be unexported (golint)
    • Line 20: warning: exported const KEEP_FILE_CONTENT_TYPE should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 311: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • mindav/routes/groups/user.go
    • Line 10: warning: exported type UserGroup should have comment or be unexported (golint)
    • Line 14: warning: exported method UserGroup.Group should have comment or be unexported (golint)
    • mindav/database/migrations/create_user_affiliation_table_1553678539.go
    • Line 15: warning: exported type UserAffiliation should have comment or be unexported (golint)
    • Line 30: warning: exported method UserAffiliation.TableName should have comment or be unexported (golint)
    • Line 34: warning: exported type CreateUserAffiliationTable1553678539 should have comment or be unexported (golint)
    • Line 39: warning: exported method CreateUserAffiliationTable1553678539.Up should have comment or be unexported (golint)
    • Line 44: warning: exported method CreateUserAffiliationTable1553678539.Down should have comment or be unexported (golint)
    • mindav/app/models/user_affiliation.go
    • Line 19: warning: exported const AFFILIATION_CODE_LENGTH should have comment or be unexported (golint)
    • Line 21: warning: exported type UserAffiliation should have comment or be unexported (golint)
    • Line 36: warning: exported method UserAffiliation.TableName should have comment or be unexported (golint)
    • Line 40: warning: exported method UserAffiliation.Default should have comment or be unexported (golint)
    • Line 53: warning: exported method UserAffiliation.InsertNode should have comment or be unexported (golint)
    • Line 151: warning: exported method UserAffiliation.Tree should have comment or be unexported (golint)
    • Line 173: warning: exported method UserAffiliation.CountByParent should have comment or be unexported (golint)
    • Line 183: warning: exported method UserAffiliation.TreeByParent should have comment or be unexported (golint)
    • Line 206: warning: exported type Tree should have comment or be unexported (golint)
    • Line 213: warning: exported method UserAffiliation.All should have comment or be unexported (golint)
    • Line 267: warning: exported method UserAffiliation.ObjArr should have comment or be unexported (golint)
    • Line 274: warning: exported method UserAffiliation.ObjArrPaginate should have comment or be unexported (golint)
    • mindav/app/models/user.go
    • Line 10: warning: exported type User should have comment or be unexported (golint)
    • Line 21: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 25: warning: exported method User.Default should have comment or be unexported (golint)
    • Line 29: warning: exported method User.Scan should have comment or be unexported (golint)
    • Line 39: warning: exported method User.Value should have comment or be unexported (golint)
    • Line 43: warning: exported method User.User should have comment or be unexported (golint)
    • Line 48: warning: exported method User.ObjArr should have comment or be unexported (golint)
    • Line 55: warning: exported method User.ObjArrPaginate should have comment or be unexported (golint)
    • mindav/routes/groups/auth.go
    • Line 8: warning: exported type AuthGroup should have comment or be unexported (golint)
    • Line 13: warning: exported method AuthGroup.Group should have comment or be unexported (golint)
    • mindav/routes/groups/webdav.go
    • Line 12: warning: exported type WebDAVGroup should have comment or be unexported (golint)
    • Line 16: warning: exported method WebDAVGroup.Group should have comment or be unexported (golint)
    • Line 28: warning: exported type WebDAVRouterGroup should have comment or be unexported (golint)
    • Line 32: warning: exported method WebDAVRouterGroup.WebDAVAny should have comment or be unexported (golint)
    • Line 42: warning: exported method WebDAVRouterGroup.WebDAVAnyPaths should have comment or be unexported (golint)
    • mindav/app/listeners/add_user_affiliation.go
    • Line 21: warning: exported type AddUserAffiliation should have comment or be unexported (golint)
    • Line 27: warning: exported method AddUserAffiliation.Name should have comment or be unexported (golint)
    • Line 31: warning: exported method AddUserAffiliation.Subscribe should have comment or be unexported (golint)
    • Line 37: warning: exported method AddUserAffiliation.Construct should have comment or be unexported (golint)
    • Line 58: warning: exported method AddUserAffiliation.Handle should have comment or be unexported (golint)
    • mindav/app/console/commands/hello.go
    • Line 13: warning: exported type HelloWorld should have comment or be unexported (golint)
    • Line 16: warning: exported method HelloWorld.Command should have comment or be unexported (golint)
    • Line 20: warning: exported method HelloWorld.Description should have comment or be unexported (golint)
    • Line 24: warning: exported method HelloWorld.Handler 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!