Preparing report...

Report for github.com/Asutorufa/fabricsdk

A+    Excellent!    Found 10 issues across 53 files

Tweet

gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo96%

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.


golint86%

Golint is a linter for Go source code.

    • fabricsdk/client/grpcclient/creds.go
    • Line 23: warning: exported var ErrClientHandshakeNotImplemented should have comment or be unexported (golint)
    • Line 59: warning: exported type TLSConfig should have comment or be unexported (golint)
    • Line 64: warning: exported function NewTLSConfig should have comment or be unexported (golint)
    • Line 70: warning: exported method TLSConfig.Config should have comment or be unexported (golint)
    • Line 81: warning: exported method TLSConfig.AddClientRootCA should have comment or be unexported (golint)
    • Line 88: warning: exported method TLSConfig.SetClientCAs should have comment or be unexported (golint)
    • Line 137: warning: exported type DynamicClientCredentials should have comment or be unexported (golint)
    • Line 150: warning: exported method DynamicClientCredentials.ClientHandshake should have comment or be unexported (golint)
    • Line 163: warning: exported method DynamicClientCredentials.ServerHandshake should have comment or be unexported (golint)
    • Line 167: warning: exported method DynamicClientCredentials.Info should have comment or be unexported (golint)
    • Line 171: warning: exported method DynamicClientCredentials.Clone should have comment or be unexported (golint)
    • Line 175: warning: exported method DynamicClientCredentials.OverrideServerName should have comment or be unexported (golint)
    • fabricsdk/client/grpcclient/grpcclient.go
    • Line 20: warning: exported type GRPCClient should have comment or be unexported (golint)
    • Line 161: warning: exported type TLSOption should have comment or be unexported (golint)
    • Line 163: warning: exported function ServerNameOverride should have comment or be unexported (golint)
    • Line 169: warning: exported function CertPoolOverride should have comment or be unexported (golint)
    • fabricsdk/client/grpcclient/serverstatshandler.go
    • Line 16: warning: exported type ServerStatsHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ServerStatsHandler.TagRPC should have comment or be unexported (golint)
    • Line 25: warning: exported method ServerStatsHandler.HandleRPC should have comment or be unexported (golint)
    • Line 27: warning: exported method ServerStatsHandler.TagConn should have comment or be unexported (golint)
    • Line 31: warning: exported method ServerStatsHandler.HandleConn 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!