Preparing report...

Report for github.com/ServiceComb/go-chassis

A+    Excellent!    Found 39 issues across 289 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!


gocyclo99%

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.


golint91%

Golint is a linter for Go source code.

    • go-chassis/core/marker/marker.go
    • Line 34: warning: exported const Once should have comment (or a comment on this block) or be unexported (golint)
    • Line 150: warning: comment on exported function Match should be of the form "Match ..." (golint)
    • go-chassis/examples/schemas/restful_hello.go
    • Line 20: warning: comment on exported method RestFulHello.Root should be of the form "Root ..." (golint)
    • Line 126: warning: comment on exported method Hello.Hello should be of the form "Hello ..." (golint)
    • Line 139: warning: comment on exported method Legacy.Do should be of the form "Do ..." (golint)
    • Line 149: warning: comment on exported type Admin should be of the form "Admin ..." (with optional leading article) (golint)
    • Line 152: warning: comment on exported method Admin.Do should be of the form "Do ..." (golint)
    • go-chassis/security/authr/options.go
    • Line 35: warning: comment on exported type LoginOptions should be of the form "LoginOptions ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type LoginOption should be of the form "LoginOption ..." (with optional leading article) (golint)
    • go-chassis/core/registry/struct.go
    • Line 52: warning: exported method MicroServiceInstance.AppID should have comment or be unexported (golint)
    • Line 53: warning: exported method MicroServiceInstance.GetVersion should have comment or be unexported (golint)
    • go-chassis/examples/mutiports/server/resource/restful_hello.go
    • Line 13: warning: comment on exported method RestFulHello.Hello should be of the form "Hello ..." (golint)
    • Line 29: warning: comment on exported method Legacy.Do should be of the form "Do ..." (golint)
    • Line 41: warning: comment on exported type Admin should be of the form "Admin ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported method Admin.Do should be of the form "Do ..." (golint)
    • go-chassis/storage/options.go
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported function PoolSize should have comment or be unexported (golint)
    • Line 23: warning: exported function SSLEnabled should have comment or be unexported (golint)
    • Line 29: warning: exported function RootCA should have comment or be unexported (golint)
    • Line 35: warning: exported function Timeout should have comment or be unexported (golint)
    • Line 41: warning: exported function VerifyPeer should have comment or be unexported (golint)
    • Line 47: warning: exported function CertFile should have comment or be unexported (golint)
    • Line 53: warning: exported function KeyFile should have comment or be unexported (golint)
    • Line 59: warning: exported function NewConfig should have comment or be unexported (golint)
    • go-chassis/examples/jwt/main.go
    • Line 40: warning: exported type User should have comment or be unexported (golint)
    • Line 44: warning: exported type HelloAuth should have comment or be unexported (golint)
    • Line 47: warning: exported method HelloAuth.Login should have comment or be unexported (golint)
    • Line 68: warning: exported method HelloAuth.Access should have comment or be unexported (golint)
    • go-chassis/examples/metadata/resource/handler.go
    • Line 8: warning: comment on exported type MetadataHandler should be of the form "MetadataHandler ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method MetadataHandler.Handle should be of the form "Handle ..." (golint)
    • Line 19: warning: comment on exported method MetadataHandler.Name should be of the form "Name ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words