Preparing report...

Report for github.com/fodedoumbouya/agent-sdk-go

(v0.0.0-20250409093359-b064ad504a9c)

A+    Excellent!    Found 11 issues across 46 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!


gocyclo76%

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.

    • main.go
    • Line 17: warning: cyclomatic complexity 17 of function main() is high (> 15) (gocyclo)
    • pkg/runner/runner.go
    • Line 556: warning: cyclomatic complexity 40 of function (*Runner).processHandoff() is high (> 15) (gocyclo)
    • Line 1935: warning: cyclomatic complexity 40 of function (*Runner).handleHandoff() is high (> 15) (gocyclo)
    • Line 326: warning: cyclomatic complexity 18 of function (*Runner).runAgentLoop() is high (> 15) (gocyclo)
    • Line 866: warning: cyclomatic complexity 17 of function (*Runner).updateInputWithToolResults() is high (> 15) (gocyclo)
    • Line 1396: warning: cyclomatic complexity 16 of function (*Runner).processModelStream() is high (> 15) (gocyclo)
    • pkg/model/providers/anthropic/model.go
    • Line 319: warning: cyclomatic complexity 35 of function (*Model).streamResponseOnce() is high (> 15) (gocyclo)
    • Line 688: warning: cyclomatic complexity 34 of function (*Model).createMessages() is high (> 15) (gocyclo)
    • Line 521: warning: cyclomatic complexity 23 of function (*Model).constructRequest() is high (> 15) (gocyclo)
    • pkg/tool/function.go
    • Line 183: warning: cyclomatic complexity 28 of function convertToType() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 27 of function (*FunctionTool).Execute() is high (> 15) (gocyclo)
    • Line 402: warning: cyclomatic complexity 19 of function getTypeSchema() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 16 of function generateSchemaFromFunction() is high (> 15) (gocyclo)

ineffassign97%

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!