Preparing report...

Report for github.com/weplanx/collector

(v0.0.0-20220217080206-8ad2e99b4b02)

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


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!


golint25%

Golint is a linter for Go source code.

    • common/reply.go
    • Line 9: warning: exported type CLSReply should have comment or be unexported (golint)
    • Line 15: warning: exported method CLSReply.Success should have comment or be unexported (golint)
    • Line 22: warning: exported method CLSReply.Fail should have comment or be unexported (golint)
    • app/app.go
    • Line 15: warning: exported type App should have comment or be unexported (golint)
    • Line 163: warning: exported method App.Destory should have comment or be unexported (golint)
    • app/common.go
    • Line 8: warning: exported var Provides should have comment or be unexported (golint)
    • Line 10: warning: exported function New should have comment or be unexported (golint)
    • bootstrap/bootstrap.go
    • Line 19: warning: exported var Provides should have comment or be unexported (golint)
    • Line 44: warning: exported function UseZap should have comment or be unexported (golint)
    • Line 51: warning: exported function UseNats should have comment or be unexported (golint)
    • Line 79: warning: exported function UseJetStream should have comment or be unexported (golint)
    • Line 83: warning: exported function UseCLS should have comment or be unexported (golint)
    • common/collector.go
    • Line 7: warning: exported type Collertor should have comment or be unexported (golint)
    • Line 11: warning: exported function NewCollertor should have comment or be unexported (golint)
    • Line 17: warning: exported method Collertor.Value should have comment or be unexported (golint)
    • Line 21: warning: exported method Collertor.Size should have comment or be unexported (golint)
    • Line 25: warning: exported method Collertor.Get should have comment or be unexported (golint)
    • Line 29: warning: exported method Collertor.Set should have comment or be unexported (golint)
    • Line 33: warning: exported method Collertor.Remove should have comment or be unexported (golint)
    • common/common.go
    • Line 9: warning: exported type Inject should have comment or be unexported (golint)
    • Line 17: warning: exported type Values should have comment or be unexported (golint)
    • Line 23: warning: exported type Nats should have comment or be unexported (golint)
    • Line 28: warning: exported type CLS 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!


misspell87%

Misspell Finds commonly misspelled English words