Preparing report...

Report for github.com/samelltiger/mind-weaver

(v0.0.0-20250512044614-26d2293464c7)

A+    Excellent!    Found 22 issues across 95 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!


gocyclo78%

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/third/glob/glob.go
    • Line 237: warning: cyclomatic complexity 28 of function listFilesRecursiveBFS() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 17 of function listFilesNonRecursive() is high (> 15) (gocyclo)
    • internal/api/completion_handlers.go
    • Line 86: warning: cyclomatic complexity 22 of function (*Handler).OpenAICompatStreamHandler() is high (> 15) (gocyclo)
    • Line 679: warning: cyclomatic complexity 16 of function (*Handler).handleLlmResponseError() is high (> 15) (gocyclo)
    • internal/services/ai_service.go
    • Line 473: warning: cyclomatic complexity 32 of function (*AIService).ChatStreamByLine() is high (> 15) (gocyclo)
    • Line 158: warning: cyclomatic complexity 17 of function (*AIService).GenerateCompletionStream() is high (> 15) (gocyclo)
    • Line 385: warning: cyclomatic complexity 17 of function (*AIService).ChatStream() is high (> 15) (gocyclo)
    • Line 697: warning: cyclomatic complexity 17 of function (*SseLineWriter).WriteModeSingleHtml() is high (> 15) (gocyclo)
    • internal/third/assistantmessage/parser.go
    • Line 214: warning: cyclomatic complexity 36 of function GenerateMarkdown() is high (> 15) (gocyclo)
    • Line 11: warning: cyclomatic complexity 35 of function ParseAssistantMessage() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 20 of function detectLanguage() is high (> 15) (gocyclo)
    • internal/treesitter/parser.go
    • Line 207: warning: cyclomatic complexity 28 of function ParseDirectory() is high (> 15) (gocyclo)
    • Line 365: warning: cyclomatic complexity 27 of function ParseSourceCodeForDefinitionsTopLevel() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


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!