Preparing report...

Report for github.com/philip-bui/grpc-errors

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


golint12%

Golint is a linter for Go source code.

    • grpc-errors/unauthenticated_error.go
    • Line 8: warning: exported var ErrUnauthenticated should have comment or be unexported (golint)
    • Line 12: warning: exported type UnauthenticatedError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUnauthenticatedError should have comment or be unexported (golint)
    • Line 24: warning: exported method UnauthenticatedError.GRPCStatus should have comment or be unexported (golint)
    • grpc-errors/already_exists_error.go
    • Line 8: warning: exported var ErrAlreadyExists should have comment or be unexported (golint)
    • Line 12: warning: exported type AlreadyExistsError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewAlreadyExistsError should have comment or be unexported (golint)
    • Line 24: warning: exported method AlreadyExistsError.GRPCStatus should have comment or be unexported (golint)
    • grpc-errors/internal_server_error.go
    • Line 8: warning: exported var ErrInternalServer should have comment or be unexported (golint)
    • Line 12: warning: exported type InternalServerError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewInternalServerError should have comment or be unexported (golint)
    • Line 24: warning: exported method InternalServerError.GRPCStatus should have comment or be unexported (golint)
    • grpc-errors/invalid_argument_error.go
    • Line 8: warning: exported var ErrInvalidArgument should have comment or be unexported (golint)
    • Line 12: warning: exported type InvalidArgumentError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewInvalidArgumentError should have comment or be unexported (golint)
    • Line 24: warning: exported method InvalidArgumentError.GRPCStatus should have comment or be unexported (golint)
    • grpc-errors/not_found_error.go
    • Line 8: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 12: warning: exported type NotFoundError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewNotFoundError should have comment or be unexported (golint)
    • Line 24: warning: exported method NotFoundError.GRPCStatus should have comment or be unexported (golint)
    • grpc-errors/permission_denied_error.go
    • Line 8: warning: exported var ErrPermissionDenied should have comment or be unexported (golint)
    • Line 12: warning: exported type PermissionDeniedError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewPermissionDeniedError should have comment or be unexported (golint)
    • Line 24: warning: exported method PermissionDeniedError.GRPCStatus should have comment or be unexported (golint)
    • grpc-errors/resource_exhaused_error.go
    • Line 8: warning: exported var ErrResourceExhausted should have comment or be unexported (golint)
    • Line 12: warning: exported type ResourceExhaustedError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewResourceExhaustedError should have comment or be unexported (golint)
    • Line 24: warning: exported method ResourceExhaustedError.GRPCStatus should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.

    • grpc-errors/already_exists_error.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import google.golang.org/grpc/codes (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import google.golang.org/grpc/status (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import google.golang.org/grpc/codes (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import google.golang.org/grpc/status (invalid package name: "") (ineffassign)
    • grpc-errors/errors_test.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/stretchr/testify/suite (invalid package name: "") (ineffassign)
    • Line 21: warning: s.Implements undefined (type *ErrorsSuite has no field or method Implements) (ineffassign)
    • Line 22: warning: s.Implements undefined (type *ErrorsSuite has no field or method Implements) (ineffassign)
    • Line 28: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 29: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 30: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 36: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 37: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 38: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 44: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 45: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 46: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 52: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 53: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 54: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 60: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 61: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 62: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 68: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 69: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 70: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 76: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 77: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)
    • Line 78: warning: s.Equal undefined (type *ErrorsSuite has no field or method Equal) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!