Preparing report...

Report for github.com/TikHub/TikHub-API-GoLang-SDK

(v0.0.0-20250309060200-2d1a552132ef)

A+    Excellent!    Found 2 issues across 81 files

Tweet

gofmt97%

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

    • api_net_ease_cloud_music_api.go
    • Line 223: expected ';', found 'interface':1::warning: file is not gofmted with -s (gofmt)
    • Line 238: expected '}', found 'var':1::warning: file is not gofmted with -s (gofmt)
    • Line 254: expected declaration, found 'if':1::warning: file is not gofmted with -s (gofmt)
    • Line 302: expected declaration, found err:1::warning: file is not gofmted with -s (gofmt)
    • Line 326: expected ';', found 'interface':1::warning: file is not gofmted with -s (gofmt)
    • Line 341: expected '}', found 'var':1::warning: file is not gofmted with -s (gofmt)
    • Line 357: expected declaration, found 'if':1::warning: file is not gofmted with -s (gofmt)
    • Line 405: expected declaration, found err:1::warning: file is not gofmted with -s (gofmt)
    • Line 445: expected declaration, found localVarPath:1::warning: file is not gofmted with -s (gofmt)
    • Line 491: expected declaration, found err:1::warning: file is not gofmted with -s (gofmt)
    • Line 531: expected declaration, found localVarPath:1::warning: file is not gofmted with -s (gofmt)
    • api_zhihu_web_api.go
    • Line 3121: expected ';', found 'interface':1::warning: file is not gofmted with -s (gofmt)
    • Line 3138: expected '}', found 'var':1::warning: file is not gofmted with -s (gofmt)
    • Line 3154: expected declaration, found 'if':1::warning: file is not gofmted with -s (gofmt)
    • Line 3205: expected declaration, found err:1::warning: file is not gofmted with -s (gofmt)
    • Line 3229: expected ';', found 'interface':1::warning: file is not gofmted with -s (gofmt)
    • Line 3246: expected '}', found 'var':1::warning: file is not gofmted with -s (gofmt)
    • Line 3262: expected declaration, found 'if':1::warning: file is not gofmted with -s (gofmt)
    • Line 3313: expected declaration, found err:1::warning: file is not gofmted with -s (gofmt)
    • Line 3352: expected declaration, found localVarPath:1::warning: file is not gofmted with -s (gofmt)
    • Line 3427: expected declaration, found localVarPath:1::warning: file is not gofmted with -s (gofmt)
    • Line 3503: expected declaration, found localVarPath:1::warning: file is not gofmted with -s (gofmt)

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!


gocyclo100%

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.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • api_net_ease_cloud_music_api.go
    • Line 223: warning: expected ';', found 'interface' (ineffassign)
    • Line 238: warning: expected '}', found 'var' (ineffassign)
    • Line 238: warning: expected ';', found '(' (ineffassign)
    • Line 254: warning: expected declaration, found 'if' (ineffassign)
    • Line 302: warning: expected declaration, found err (ineffassign)
    • Line 326: warning: expected ';', found 'interface' (ineffassign)
    • Line 341: warning: expected '}', found 'var' (ineffassign)
    • Line 341: warning: expected ';', found '(' (ineffassign)
    • Line 357: warning: expected declaration, found 'if' (ineffassign)
    • Line 405: warning: expected declaration, found err (ineffassign)
    • Line 445: warning: expected declaration, found localVarPath (ineffassign)
    • Line 491: warning: expected declaration, found err (ineffassign)
    • Line 531: warning: expected declaration, found localVarPath (ineffassign)
    • Line 577: warning: expected declaration, found err (ineffassign)
    • api_zhihu_web_api.go
    • Line 3121: warning: expected ';', found 'interface' (ineffassign)
    • Line 3138: warning: expected '}', found 'var' (ineffassign)
    • Line 3138: warning: expected ';', found '(' (ineffassign)
    • Line 3154: warning: expected declaration, found 'if' (ineffassign)
    • Line 3205: warning: expected declaration, found err (ineffassign)
    • Line 3229: warning: expected ';', found 'interface' (ineffassign)
    • Line 3246: warning: expected '}', found 'var' (ineffassign)
    • Line 3246: warning: expected ';', found '(' (ineffassign)
    • Line 3262: warning: expected declaration, found 'if' (ineffassign)
    • Line 3313: warning: expected declaration, found err (ineffassign)
    • Line 3352: warning: expected declaration, found localVarPath (ineffassign)
    • Line 3427: warning: expected declaration, found localVarPath (ineffassign)
    • Line 3503: warning: expected declaration, found localVarPath (ineffassign)
    • Line 3549: warning: expected declaration, found err (ineffassign)
    • Line 3589: warning: expected declaration, found localVarPath (ineffassign)
    • Line 3635: warning: expected declaration, found err (ineffassign)

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!