Report for github.com/claceio/clace

(v0.8.0)

A+    Excellent!    Found 25 issues across 102 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!


gocyclo75%

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.

    • internal/server/app_apis.go
    • Line 110: warning: cyclomatic complexity 28 of function (*Server).createApp() is high (> 15) (gocyclo)
    • Line 679: warning: cyclomatic complexity 21 of function (*Server).loadSourceFromGit() is high (> 15) (gocyclo)
    • Line 487: warning: cyclomatic complexity 17 of function (*Server).MatchApp() is high (> 15) (gocyclo)
    • Line 908: warning: cyclomatic complexity 16 of function (*Server).PreviewApp() is high (> 15) (gocyclo)
    • internal/app/app.go
    • Line 187: warning: cyclomatic complexity 32 of function (*App).Reload() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 30 of function (*App).loadContainerManager() is high (> 15) (gocyclo)
    • Line 581: warning: cyclomatic complexity 16 of function (*App).startWatcher() is high (> 15) (gocyclo)
    • plugins/exec.go
    • Line 35: warning: cyclomatic complexity 19 of function (*ExecPlugin).Run() is high (> 15) (gocyclo)
    • internal/app/handler.go
    • Line 52: warning: cyclomatic complexity 50 of function (*App).createHandlerFunc() is high (> 15) (gocyclo)
    • Line 267: warning: cyclomatic complexity 32 of function (*App).handleResponse() is high (> 15) (gocyclo)
    • internal/app/container_manager.go
    • Line 597: warning: cyclomatic complexity 23 of function (*ContainerManager).ProdReload() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 18 of function NewContainerManager() is high (> 15) (gocyclo)
    • internal/app/setup.go
    • Line 38: warning: cyclomatic complexity 23 of function (*App).loadStarlarkConfig() is high (> 15) (gocyclo)
    • Line 656: warning: cyclomatic complexity 22 of function (*App).addProxyConfig() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 21 of function (*App).addParams() 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!