Preparing report...

Report for github.com/orchestre-dev/ccproxy

(v0.0.0-20250722033222-37a5d8db600d)

A+    Excellent!    Found 31 issues across 143 files

Tweet

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!


gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo79%

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/transformer/anthropic.go
    • Line 29: warning: cyclomatic complexity 37 of function (*AnthropicTransformer).TransformRequestIn() is high (> 15) (gocyclo)
    • Line 441: warning: cyclomatic complexity 20 of function (*AnthropicTransformer).transformStreamEvent() is high (> 15) (gocyclo)
    • internal/transformer/anthropic_test.go
    • Line 25: warning: cyclomatic complexity 23 of function TestAnthropicTransformer_TransformRequestIn() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 20 of function TestAnthropicTransformer_TransformResponseOut() is high (> 15) (gocyclo)
    • internal/transformer/gemini.go
    • Line 27: warning: cyclomatic complexity 28 of function (*GeminiTransformer).TransformRequestIn() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 17 of function (*GeminiTransformer).transformGeminiToOpenAI() is high (> 15) (gocyclo)
    • internal/config/config_test.go
    • Line 357: warning: cyclomatic complexity 24 of function TestService_Load_ComprehensiveScenarios() is high (> 15) (gocyclo)
    • Line 668: warning: cyclomatic complexity 16 of function TestService_LoadEnvFile_Comprehensive() is high (> 15) (gocyclo)
    • internal/config/validate_test.go
    • Line 8: warning: cyclomatic complexity 23 of function TestConfig_Validate() is high (> 15) (gocyclo)
    • Line 291: warning: cyclomatic complexity 20 of function TestValidateProvider() is high (> 15) (gocyclo)
    • internal/transformer/tooluse.go
    • Line 245: warning: cyclomatic complexity 19 of function (*ToolUseTransformer).transformStreamEvent() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 17 of function (*ToolUseTransformer).transformNonStreamingResponse() is high (> 15) (gocyclo)
    • internal/server/messages_test.go
    • Line 18: warning: cyclomatic complexity 27 of function TestHandleMessages() is high (> 15) (gocyclo)
    • Line 349: warning: cyclomatic complexity 17 of function TestMessageStructures() is high (> 15) (gocyclo)
    • internal/config/types_test.go
    • Line 71: warning: cyclomatic complexity 20 of function TestConfig_StructFields() is high (> 15) (gocyclo)
    • Line 8: warning: cyclomatic complexity 18 of function TestDefaultConfig() 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!