Preparing report...

Report for github.com/whoisix/subscribe2clash

A+    Excellent!    Found 15 issues across 20 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!


gocyclo95%

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.


golint25%

Golint is a linter for Go source code.

    • subscribe2clash/app/api/clash.go
    • Line 13: warning: exported type ClashController should have comment or be unexported (golint)
    • Line 15: warning: exported method ClashController.Clash should have comment or be unexported (golint)
    • subscribe2clash/internal/subscribe/proxy_type.go
    • Line 4: warning: exported const SSRServer should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type Vmess should have comment or be unexported (golint)
    • Line 26: warning: exported type ClashVmess should have comment or be unexported (golint)
    • Line 41: warning: exported type ClashRSSR should have comment or be unexported (golint)
    • Line 54: warning: exported type ClashSS should have comment or be unexported (golint)
    • Line 65: warning: exported type PluginOpts should have comment or be unexported (golint)
    • Line 70: warning: exported type SSD should have comment or be unexported (golint)
    • Line 92: warning: exported type Clash should have comment or be unexported (golint)
    • Line 111: warning: exported type Trojan should have comment or be unexported (golint)
    • subscribe2clash/internal/acl/generate_config.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 26: warning: exported type GenOption should have comment or be unexported (golint)
    • Line 28: warning: exported function WithBaseFile should have comment or be unexported (golint)
    • Line 34: warning: exported function WithOutputFile should have comment or be unexported (golint)
    • Line 40: warning: exported function GenerateConfig should have comment or be unexported (golint)
    • Line 130: warning: exported function Exists should have comment or be unexported (golint)
    • subscribe2clash/internal/acl/urls.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 16: warning: exported type Rules should have comment or be unexported (golint)
    • Line 21: warning: exported function GetRules should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!