Preparing report...

Report for github.com/bebsworthy/logmcp

(v0.0.0-20250705135936-dceec6b263d3)

A+    Excellent!    Found 14 issues across 52 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!


gocyclo73%

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/protocol/messages.go
    • Line 202: warning: cyclomatic complexity 36 of function ValidateMessage() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 16 of function ParseMessage() is high (> 15) (gocyclo)
    • internal/e2e/start_process_test.go
    • Line 207: warning: cyclomatic complexity 23 of function TestStartProcess_RestartPolicies() is high (> 15) (gocyclo)
    • Line 480: warning: cyclomatic complexity 17 of function TestStartProcess_CrashingProcess() is high (> 15) (gocyclo)
    • internal/e2e/get_logs_test.go
    • Line 225: warning: cyclomatic complexity 21 of function TestGetLogs_StreamFiltering() is high (> 15) (gocyclo)
    • Line 11: warning: cyclomatic complexity 16 of function TestGetLogs_BasicSingleSession() is high (> 15) (gocyclo)
    • Line 451: warning: cyclomatic complexity 16 of function TestGetLogs_MaxResultsAcrossSessions() is high (> 15) (gocyclo)
    • cmd/serve.go
    • Line 55: warning: cyclomatic complexity 20 of function runServe() is high (> 15) (gocyclo)
    • internal/e2e/resilience_test.go
    • Line 225: warning: cyclomatic complexity 19 of function TestMultipleProcessManagement() is high (> 15) (gocyclo)
    • Line 11: warning: cyclomatic complexity 16 of function TestProcessCrashDetection() is high (> 15) (gocyclo)
    • Line 80: warning: cyclomatic complexity 16 of function TestHighFrequencyLogging() is high (> 15) (gocyclo)
    • internal/server/mcp.go
    • Line 349: warning: cyclomatic complexity 38 of function (*MCPServer).handleGetLogs() is high (> 15) (gocyclo)
    • Line 694: warning: cyclomatic complexity 34 of function (*MCPServer).startManagedProcess() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 22 of function (*MCPServer).handleStartProcess() is high (> 15) (gocyclo)
    • internal/e2e/list_sessions_test.go
    • Line 32: warning: cyclomatic complexity 24 of function TestListSessions_MultipleActiveSessions() is high (> 15) (gocyclo)
    • Line 157: warning: cyclomatic complexity 22 of function TestListSessions_SessionMetadataAccuracy() is high (> 15) (gocyclo)
    • Line 378: warning: cyclomatic complexity 18 of function TestListSessions_ManySessions() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!