Preparing report...

Report for github.com/WhizUs/go-opendistro

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


golint0%

Golint is a linter for Go source code.

    • go-opendistro/client.go
    • Line 23: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 29: warning: exported type TLSConfig should have comment or be unexported (golint)
    • Line 38: warning: exported type Client should have comment or be unexported (golint)
    • Line 57: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.GetBaseURL should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 177: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 195: warning: exported method Client.Modify should have comment or be unexported (golint)
    • go-opendistro/common/common.go
    • Line 13: warning: exported const UsersEndpoint should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Service should have comment or be unexported (golint)
    • Line 25: warning: exported type Patch should have comment or be unexported (golint)
    • Line 31: warning: exported type ClientInterface should have comment or be unexported (golint)
    • Line 38: warning: exported type Modifyable should have comment or be unexported (golint)
    • go-opendistro/security/actiongroup.go
    • Line 14: warning: exported type ActiongroupService should have comment or be unexported (golint)
    • Line 16: warning: exported type ActiongroupServiceInterface should have comment or be unexported (golint)
    • Line 23: warning: exported type Actiongroup should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method ActiongroupService.Get should be of the form "Get ..." (golint)
    • Line 55: warning: comment on exported method ActiongroupService.List should be of the form "List ..." (golint)
    • Line 76: warning: comment on exported method ActiongroupService.Delete should be of the form "Delete ..." (golint)
    • Line 85: warning: comment on exported method ActiongroupService.Create should be of the form "Create ..." (golint)
    • Line 94: warning: comment on exported method ActiongroupService.Update should be of the form "Update ..." (golint)
    • Line 103: warning: comment on exported method ActiongroupService.UpdateBatch should be of the form "UpdateBatch ..." (golint)
    • go-opendistro/security/role.go
    • Line 14: warning: exported type RoleService should have comment or be unexported (golint)
    • Line 16: warning: exported type RoleServiceInterface should have comment or be unexported (golint)
    • Line 23: warning: exported type Role should have comment or be unexported (golint)
    • Line 32: warning: exported type RolePermissions should have comment or be unexported (golint)
    • Line 38: warning: exported type IndexPermissions should have comment or be unexported (golint)
    • Line 46: warning: exported type TenantPermissions should have comment or be unexported (golint)
    • Line 121: warning: comment on exported method RoleService.UpdateBatch should be of the form "UpdateBatch ..." (golint)
    • go-opendistro/security/user.go
    • Line 14: warning: exported type UserService should have comment or be unexported (golint)
    • Line 16: warning: exported type UserServiceInterface should have comment or be unexported (golint)
    • Line 24: warning: exported type UserCreate should have comment or be unexported (golint)
    • Line 31: warning: exported type User should have comment or be unexported (golint)
    • Line 112: warning: comment on exported method UserService.UpdateBatch should be of the form "UpdateBatch ..." (golint)
    • go-opendistro/common/status.go
    • Line 21: warning: exported type StatusError should have comment or be unexported (golint)
    • Line 25: warning: exported var Status should have comment or be unexported (golint)
    • Line 34: warning: exported type StatusResponse should have comment or be unexported (golint)
    • Line 41: warning: exported function NewStatusError should have comment or be unexported (golint)
    • go-opendistro/security/health.go
    • Line 8: warning: exported type HealthService should have comment or be unexported (golint)
    • Line 10: warning: exported type HealthServiceInterface should have comment or be unexported (golint)
    • Line 14: warning: exported type Health should have comment or be unexported (golint)
    • Line 20: warning: exported method HealthService.Get should have comment or be unexported (golint)
    • go-opendistro/security/rolesmapping.go
    • Line 14: warning: exported type RolesmappingService should have comment or be unexported (golint)
    • Line 16: warning: exported type RolesmappingServiceInterface should have comment or be unexported (golint)
    • Line 23: warning: exported type RoleMapping should have comment or be unexported (golint)
    • Line 31: warning: exported type RoleMappingRelations should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method RolesmappingService.Get should be of the form "Get ..." (golint)
    • Line 59: warning: comment on exported method RolesmappingService.List should be of the form "List ..." (golint)
    • Line 80: warning: comment on exported method RolesmappingService.Delete should be of the form "Delete ..." (golint)
    • Line 89: warning: comment on exported method RolesmappingService.Create should be of the form "Create ..." (golint)
    • Line 98: warning: comment on exported method RolesmappingService.Update should be of the form "Update ..." (golint)
    • Line 107: warning: comment on exported method RolesmappingService.UpdateBatch should be of the form "UpdateBatch ..." (golint)
    • go-opendistro/security/tenant.go
    • Line 14: warning: exported type TenantService should have comment or be unexported (golint)
    • Line 16: warning: exported type TenantServiceInterface should have comment or be unexported (golint)
    • Line 23: warning: exported type Tenant should have comment or be unexported (golint)
    • Line 74: warning: comment on exported method TenantService.Delete should be of the form "Delete ..." (golint)
    • Line 83: warning: comment on exported method TenantService.Create should be of the form "Create ..." (golint)
    • Line 92: warning: comment on exported method TenantService.Update should be of the form "Update ..." (golint)
    • Line 101: warning: comment on exported method TenantService.UpdateBatch should be of the form "UpdateBatch ..." (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!