Preparing report...

Report for github.com/open-micro/go-micro

(v1.18.0)

A+    Excellent!    Found 37 issues across 446 files

Tweet

gofmt97%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo94%

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.

    • server/rpc_server.go
    • Line 130: warning: cyclomatic complexity 32 of function (*rpcServer).ServeConn() is high (> 15) (gocyclo)
    • Line 496: warning: cyclomatic complexity 22 of function (*rpcServer).Register() is high (> 15) (gocyclo)
    • Line 735: warning: cyclomatic complexity 19 of function (*rpcServer).Start() is high (> 15) (gocyclo)
    • network/default.go
    • Line 340: warning: cyclomatic complexity 28 of function (*network).processNetChan() is high (> 15) (gocyclo)
    • Line 859: warning: cyclomatic complexity 19 of function (*network).processCtrlChan() is high (> 15) (gocyclo)
    • router/default.go
    • Line 388: warning: cyclomatic complexity 22 of function (*router).advertiseEvents() is high (> 15) (gocyclo)
    • tunnel/default.go
    • Line 487: warning: cyclomatic complexity 40 of function (*tun).listen() is high (> 15) (gocyclo)
    • Line 326: warning: cyclomatic complexity 23 of function (*tun).process() is high (> 15) (gocyclo)
    • Line 1022: warning: cyclomatic complexity 18 of function (*tun).Dial() is high (> 15) (gocyclo)
    • server/grpc/grpc.go
    • Line 527: warning: cyclomatic complexity 18 of function (*grpcServer).Register() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 17 of function (*grpcServer).handler() is high (> 15) (gocyclo)
    • tunnel/listener.go
    • Line 45: warning: cyclomatic complexity 17 of function (*tunListener).process() is high (> 15) (gocyclo)
    • api/api_test.go
    • Line 8: warning: cyclomatic complexity 25 of function TestEncoding() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!