Preparing report...

Report for github.com/polarismesh/polaris

(v1.9.0)

A+    Excellent!    Found 39 issues across 419 files

Tweet

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!


gofmt98%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo92%

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.

    • store/boltdb/service.go
    • Line 579: warning: cyclomatic complexity 53 of function (*serviceStore).getServices() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 22 of function (*serviceStore).GetServiceAliases() is high (> 15) (gocyclo)
    • store/boltdb/codec.go
    • Line 360: warning: cyclomatic complexity 23 of function deserializeObject() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 18 of function serializeObject() is high (> 15) (gocyclo)
    • test/discover/instance_test.go
    • Line 782: warning: cyclomatic complexity 20 of function TestUpdateIsolate() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 16 of function TestCreateInstance() is high (> 15) (gocyclo)
    • test/discover/main_test.go
    • Line 769: warning: cyclomatic complexity 21 of function checkRateLimit() is high (> 15) (gocyclo)
    • Line 502: warning: cyclomatic complexity 16 of function CheckGetService() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 16 of function instanceCheck() is high (> 15) (gocyclo)
    • service/instance.go
    • Line 541: warning: cyclomatic complexity 19 of function (*Server).updateInstanceAttribute() is high (> 15) (gocyclo)
    • Line 988: warning: cyclomatic complexity 17 of function preGetInstances() is high (> 15) (gocyclo)
    • Line 421: warning: cyclomatic complexity 16 of function (*Server).UpdateInstanceIsolate() is high (> 15) (gocyclo)
    • apiserver/eurekaserver/worker.go
    • Line 370: warning: cyclomatic complexity 16 of function buildInstance() is high (> 15) (gocyclo)
    • Line 578: warning: cyclomatic complexity 16 of function (*ApplicationsWorker).buildDeltaApps() is high (> 15) (gocyclo)
    • test/http/circuitbreaker_config.go
    • Line 311: warning: cyclomatic complexity 18 of function (*Client).GetCircuitBreakersRelease() is high (> 15) (gocyclo)
    • Line 536: warning: cyclomatic complexity 17 of function compareCircuitBreaker() is high (> 15) (gocyclo)
    • service/service.go
    • Line 527: warning: cyclomatic complexity 24 of function (*Server).updateServiceAttribute() is high (> 15) (gocyclo)
    • store/boltdb/user.go
    • Line 411: warning: cyclomatic complexity 18 of function (*userStore).getGroupUsers() is high (> 15) (gocyclo)
    • Line 347: warning: cyclomatic complexity 16 of function (*userStore).getUsers() 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!