Preparing report...

Report for github.com/choria-io/go-choria

(v0.26.1)

A+    Excellent!    Found 37 issues across 571 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

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.

    • cmd/broker.go
    • Line 44: warning: cyclomatic complexity 16 of function (*brokerCommand).prepareNatsCli() is high (> 15) (gocyclo)
    • cmd/buildinfo.go
    • Line 49: warning: cyclomatic complexity 22 of function (*buildinfoCommand).Run() is high (> 15) (gocyclo)
    • cmd/kv_api.go
    • Line 93: warning: cyclomatic complexity 21 of function (*kvAPICommand).updateCmd() is high (> 15) (gocyclo)
    • providers/appbuilder/rpc/rpc.go
    • Line 286: warning: cyclomatic complexity 24 of function (*RPC).runCommand() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 20 of function (*RPC).CreateCommand() is high (> 15) (gocyclo)
    • cmd/req.go
    • Line 208: warning: cyclomatic complexity 19 of function (*reqCommand).Run() is high (> 15) (gocyclo)
    • scout/cmd/watch.go
    • Line 354: warning: cyclomatic complexity 24 of function (*WatchCommand).setupWindows() is high (> 15) (gocyclo)
    • Line 197: warning: cyclomatic complexity 17 of function (*WatchCommand).handleState() is high (> 15) (gocyclo)
    • cmd/jwt_view.go
    • Line 179: warning: cyclomatic complexity 21 of function (*tJWTViewCommand).validateClientToken() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 17 of function (*tJWTViewCommand).validateProvisionToken() is high (> 15) (gocyclo)
    • config/config.go
    • Line 296: warning: cyclomatic complexity 26 of function (*Config).normalize() is high (> 15) (gocyclo)
    • broker/network/choria_auth.go
    • Line 229: warning: cyclomatic complexity 23 of function (*ChoriaAuth).handleDefaultConnection() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 22 of function (*ChoriaAuth).Check() is high (> 15) (gocyclo)
    • cmd/login.go
    • Line 72: warning: cyclomatic complexity 19 of function (*loginCommand).login() is high (> 15) (gocyclo)
    • cmd/server_run.go
    • Line 41: warning: cyclomatic complexity 17 of function (*serverRunCommand).Configure() 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!