Preparing report...

Report for github.com/LdDl/grpc-jwt

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


golint75%

Golint is a linter for Go source code.

    • grpc-jwt/grpc_jwt.go
    • Line 36: warning: exported function NewJWT should have comment or be unexported (golint)
    • Line 43: warning: exported method JWTgRPC.Init should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign-50%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/go/pkg/mod/google.golang.org/grpc@v1.34.0/internal/channelz/types_linux.go
    • Line 26: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by google.golang.org/grpc/internal/channelz); to add: (ineffassign)
    • Line 26: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 26: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by google.golang.org/grpc/internal/channelz); to add: (ineffassign)
    • Line 26: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 26: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by google.golang.org/grpc/internal/channelz); to add: (ineffassign)
    • Line 26: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • grpc-jwt/cmd/server/main.go
    • Line 17: warning: undeclared name: ServerExampleServer (ineffassign)
    • Line 21: warning: undeclared name: NoArguments (ineffassign)
    • Line 21: warning: undeclared name: HiddenData (ineffassign)
    • Line 26: warning: undeclared name: NoArguments (ineffassign)
    • Line 26: warning: undeclared name: PublicData (ineffassign)
    • Line 22: warning: undeclared name: HiddenData (ineffassign)
    • Line 27: warning: undeclared name: PublicData (ineffassign)
    • Line 157: warning: undeclared name: RegisterServerExampleServer (ineffassign)
    • Line 160: warning: RegisterJWTServiceServer not declared by package grpcjwt (ineffassign)
    • grpc-jwt/auth_service.go
    • Line 18: warning: undeclared name: JWTServiceServer (ineffassign)
    • Line 64: warning: undeclared name: LoginRequest (ineffassign)
    • Line 64: warning: undeclared name: LoginResponse (ineffassign)
    • Line 139: warning: undeclared name: NoArguments (ineffassign)
    • Line 139: warning: undeclared name: RefreshTokenResponse (ineffassign)
    • Line 92: warning: undeclared name: LoginResponse (ineffassign)
    • Line 152: warning: undeclared name: RefreshTokenResponse (ineffassign)
    • Line 165: warning: undeclared name: RefreshTokenResponse (ineffassign)
    • Line 167: warning: undeclared name: RefreshTokenResponse (ineffassign)
    • grpc-jwt/cmd/client/main.go
    • Line 32: warning: NewJWTServiceClient not declared by package grpcjwt (ineffassign)
    • Line 33: warning: LoginRequest not declared by package grpcjwt (ineffassign)
    • Line 51: warning: undeclared name: NewServerExampleClient (ineffassign)
    • Line 54: warning: undeclared name: NoArguments (ineffassign)
    • Line 75: warning: undeclared name: NoArguments (ineffassign)
    • Line 95: warning: NoArguments not declared by package grpcjwt (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!