Preparing report...

Report for github.com/phildougherty/mcp-compose

(v0.0.0-20250711042016-aa2f5bc3d270)

C    Needs some work    Found 68 issues across 80 files

Tweet

gofmt16%

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!


gocyclo70%

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/cmd/task_scheduler.go
    • Line 22: warning: cyclomatic complexity 51 of function NewTaskSchedulerCommand() is high (> 15) (gocyclo)
    • Line 433: warning: cyclomatic complexity 21 of function runContainerizedTaskScheduler() is high (> 15) (gocyclo)
    • internal/auth/handlers.go
    • Line 1016: warning: cyclomatic complexity 27 of function (*AuthorizationServer).HandleRevoke() is high (> 15) (gocyclo)
    • Line 443: warning: cyclomatic complexity 18 of function (*AuthorizationServer).handleAuthorizationCodeGrant() is high (> 15) (gocyclo)
    • Line 642: warning: cyclomatic complexity 18 of function (*AuthorizationServer).handleRefreshTokenGrant() is high (> 15) (gocyclo)
    • internal/server/http_router.go
    • Line 38: warning: cyclomatic complexity 31 of function (*ProxyHandler).ServeHTTP() is high (> 15) (gocyclo)
    • Line 577: warning: cyclomatic complexity 20 of function (*ProxyHandler).handleSSEServerRequest() is high (> 15) (gocyclo)
    • internal/server/http_connections.go
    • Line 31: warning: cyclomatic complexity 19 of function (*ProxyHandler).getServerConnection() is high (> 15) (gocyclo)
    • Line 135: warning: cyclomatic complexity 16 of function (*ProxyHandler).initializeHTTPConnection() is high (> 15) (gocyclo)
    • internal/server/manager.go
    • Line 1163: warning: cyclomatic complexity 31 of function (*Manager).checkServerHealth() is high (> 15) (gocyclo)
    • Line 401: warning: cyclomatic complexity 25 of function (*Manager).startContainerServer() is high (> 15) (gocyclo)
    • Line 1028: warning: cyclomatic complexity 22 of function (*Manager).startHealthCheck() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 19 of function (*Manager).StartServer() is high (> 15) (gocyclo)
    • Line 794: warning: cyclomatic complexity 18 of function (*ResourcesWatcher).Start() is high (> 15) (gocyclo)
    • Line 1494: warning: cyclomatic complexity 16 of function (*Manager).Shutdown() is high (> 15) (gocyclo)
    • internal/compose/compose.go
    • Line 170: warning: cyclomatic complexity 26 of function Up() is high (> 15) (gocyclo)
    • Line 783: warning: cyclomatic complexity 21 of function Logs() is high (> 15) (gocyclo)
    • Line 475: warning: cyclomatic complexity 18 of function isContainerServer() is high (> 15) (gocyclo)
    • Line 970: warning: cyclomatic complexity 17 of function buildFallbackOrder() is high (> 15) (gocyclo)
    • Line 585: warning: cyclomatic complexity 17 of function Down() is high (> 15) (gocyclo)
    • Line 865: warning: cyclomatic complexity 17 of function getServersToStart() is high (> 15) (gocyclo)
    • Line 678: warning: cyclomatic complexity 17 of function List() is high (> 15) (gocyclo)
    • internal/dashboard/handlers.go
    • Line 1443: warning: cyclomatic complexity 45 of function (*DashboardServer).handleTaskSchedulerProxy() is high (> 15) (gocyclo)
    • Line 1951: warning: cyclomatic complexity 26 of function (*DashboardServer).streamLogsFromRuntime() is high (> 15) (gocyclo)
    • Line 803: warning: cyclomatic complexity 18 of function (*DashboardServer).handleOAuthAuthorize() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license0%

Checks whether your project has a LICENSE file.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!