Preparing report...

Report for github.com/AikoPanel/Aiko-Server

(v1.3.12)

A+    Excellent!    Found 6 issues across 62 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!


gocyclo91%

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.

    • service/controller/controller.go
    • Line 474: warning: cyclomatic complexity 32 of function (*Controller).userInfoMonitor() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 29 of function (*Controller).nodeInfoMonitor() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 16 of function (*Controller).Start() is high (> 15) (gocyclo)
    • app/mydispatcher/default.go
    • Line 147: warning: cyclomatic complexity 27 of function (*DefaultDispatcher).getLink() is high (> 15) (gocyclo)
    • Line 442: warning: cyclomatic complexity 20 of function (*DefaultDispatcher).routedDispatch() is high (> 15) (gocyclo)
    • panel/panel.go
    • Line 45: warning: cyclomatic complexity 22 of function (*Panel).loadCore() is high (> 15) (gocyclo)
    • api/sspanel/sspanel.go
    • Line 157: warning: cyclomatic complexity 17 of function (*APIClient).GetNodeInfo() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 16 of function (*APIClient).ParseV2rayNodeResponse() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • api/pmpanel/pmpanel.go
    • Line 142: warning: ineffectual assignment to nodeType (ineffassign)
    • Line 195: warning: ineffectual assignment to nodeType (ineffassign)
    • Line 240: warning: ineffectual assignment to nodeType (ineffassign)
    • Line 274: warning: ineffectual assignment to nodeType (ineffassign)
    • Line 314: warning: ineffectual assignment to nodeType (ineffassign)
    • Line 363: warning: ineffectual assignment to speedLimit (ineffassign)
    • Line 410: warning: ineffectual assignment to speedLimit (ineffassign)
    • Line 436: warning: ineffectual assignment to speedlimit (ineffassign)
    • Line 465: warning: ineffectual assignment to deviceLimit (ineffassign)
    • Line 466: warning: ineffectual assignment to speedLimit (ineffassign)
    • api/sspanel/sspanel.go
    • Line 415: warning: ineffectual assignment to speedlimit (ineffassign)
    • Line 504: warning: ineffectual assignment to speedlimit (ineffassign)
    • Line 557: warning: ineffectual assignment to speedlimit (ineffassign)
    • Line 623: warning: ineffectual assignment to speedLimit (ineffassign)
    • Line 698: warning: ineffectual assignment to deviceLimit (ineffassign)
    • Line 698: warning: ineffectual assignment to localDeviceLimit (ineffassign)
    • Line 699: warning: ineffectual assignment to speedlimit (ineffassign)
    • Line 754: warning: ineffectual assignment to speedlimit (ineffassign)
    • Line 797: warning: ineffectual assignment to TLSType (ineffassign)
    • Line 802: warning: ineffectual assignment to TLSType (ineffassign)
    • Line 804: warning: ineffectual assignment to TLSType (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!