Preparing report...

Report for github.com/WindSpiritSR/clash-cli

A    Great!    Found 15 issues across 16 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!


gocyclo93%

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.


golint6%

Golint is a linter for Go source code.

    • clash-cli/step/latency.go
    • Line 16: warning: exported type LatencyTest should have comment or be unexported (golint)
    • Line 22: warning: exported method LatencyTest.Run should have comment or be unexported (golint)
    • clash-cli/step/root.go
    • Line 11: warning: exported type Root should have comment or be unexported (golint)
    • Line 15: warning: exported method Root.Run should have comment or be unexported (golint)
    • clash-cli/step/log.go
    • Line 19: warning: exported type Log should have comment or be unexported (golint)
    • Line 24: warning: exported method Log.Run should have comment or be unexported (golint)
    • Line 69: warning: exported function IsCanceled should have comment or be unexported (golint)
    • clash-cli/step/switch_proxy.go
    • Line 13: warning: exported type SwitchProxy should have comment or be unexported (golint)
    • Line 18: warning: exported method SwitchProxy.Run should have comment or be unexported (golint)
    • Line 81: warning: exported method SwitchProxy.UpdateProxy should have comment or be unexported (golint)
    • clash-cli/step/traffic.go
    • Line 12: warning: exported type Traffic should have comment or be unexported (golint)
    • Line 17: warning: exported method Traffic.Run should have comment or be unexported (golint)
    • clash-cli/model/type.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 24: warning: exported type Proxies should have comment or be unexported (golint)
    • Line 28: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 35: warning: exported const ItemTypeProxy should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported var Latencys should have comment or be unexported (golint)
    • Line 41: warning: exported type ProxyName should have comment or be unexported (golint)
    • Line 62: warning: exported method ProxyName.UnmarshalJSON should have comment or be unexported (golint)
    • Line 71: warning: exported type AdapterType should have comment or be unexported (golint)
    • Line 73: warning: exported method AdapterType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 99: warning: exported method AdapterType.Is should have comment or be unexported (golint)
    • Line 103: warning: exported type HumanBytes should have comment or be unexported (golint)
    • Line 105: warning: exported method HumanBytes.UnmarshalJSON should have comment or be unexported (golint)
    • Line 114: warning: exported type Traffic should have comment or be unexported (golint)
    • Line 119: warning: exported type Log should have comment or be unexported (golint)
    • Line 124: warning: exported type HumanLatency should have comment or be unexported (golint)
    • Line 126: warning: exported method HumanLatency.UnmarshalJSON should have comment or be unexported (golint)
    • Line 135: warning: exported type Latency should have comment or be unexported (golint)
    • clash-cli/api/proxy.go
    • Line 10: warning: exported method Client.GetProxies should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.UpdateProxy should have comment or be unexported (golint)
    • Line 40: warning: exported method Client.GetLatency should have comment or be unexported (golint)
    • clash-cli/step/config.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported method Config.Run should have comment or be unexported (golint)
    • clash-cli/api/config.go
    • Line 11: warning: exported type Client should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.GetConfigs should have comment or be unexported (golint)
    • Line 30: warning: exported method Client.UpdateMode should have comment or be unexported (golint)
    • clash-cli/storage/storage.go
    • Line 12: warning: exported type Client should have comment or be unexported (golint)
    • Line 16: warning: exported function Open should have comment or be unexported (golint)
    • Line 34: warning: exported method Client.SetUrl should have comment or be unexported (golint)
    • Line 38: warning: exported method Client.GetUrl should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.SetSecret should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.GetSecret should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.CheckKey should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!