Preparing report...

Report for github.com/pascallin/go-kit-application

(v0.0.0-20220111072224-fc79e0e097e0)

A    Great!    Found 14 issues across 16 files

Tweet

gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint18%

Golint is a linter for Go source code.

    • addsvc/addendpoint/set.go
    • Line 22: warning: exported type Set should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 58: warning: exported method Set.Sum should have comment or be unexported (golint)
    • Line 67: warning: exported method Set.Concat should have comment or be unexported (golint)
    • Line 76: warning: exported function MakeSumEndpoint should have comment or be unexported (golint)
    • Line 84: warning: exported function MakeConcatEndpoint should have comment or be unexported (golint)
    • Line 97: warning: exported type SumRequest should have comment or be unexported (golint)
    • Line 101: warning: exported type SumResponse should have comment or be unexported (golint)
    • Line 106: warning: exported method SumResponse.Failed should have comment or be unexported (golint)
    • Line 108: warning: exported type ConcatRequest should have comment or be unexported (golint)
    • Line 112: warning: exported type ConcatResponse should have comment or be unexported (golint)
    • Line 117: warning: exported method ConcatResponse.Failed should have comment or be unexported (golint)
    • usersvc/services/service.go
    • Line 20: warning: exported type User should have comment or be unexported (golint)
    • Line 26: warning: error should be the last type when returning multiple items (golint)
    • Line 36: warning: error should be the last type when returning multiple items (golint)
    • Line 56: warning: error should be the last type when returning multiple items (golint)
    • Line 56: warning: exported function Register should have comment or be unexported (golint)
    • addsvc/addtransport/http.go
    • Line 31: warning: exported function NewHTTPHandler should have comment or be unexported (golint)
    • Line 56: warning: exported function NewHTTPClient should have comment or be unexported (golint)
    • Line 152: warning: exported function DecodeHTTPSumRequest should have comment or be unexported (golint)
    • Line 158: warning: exported function DecodeHTTPConcatRequest should have comment or be unexported (golint)
    • Line 164: warning: exported function DecodeHTTPSumResponse should have comment or be unexported (golint)
    • Line 173: warning: exported function DecodeHTTPConcatResponse should have comment or be unexported (golint)
    • Line 182: warning: exported function EncodeHTTPGenericRequest should have comment or be unexported (golint)
    • Line 191: warning: exported function EncodeHTTPGenericResponse should have comment or be unexported (golint)
    • addsvc/start.go
    • Line 30: warning: exported function StartAddSVCService should have comment or be unexported (golint)
    • addsvc/addtransport/grpc.go
    • Line 48: warning: exported function NewGRPCServer should have comment or be unexported (golint)
    • Line 127: warning: exported function NewGRPCClient should have comment or be unexported (golint)
    • discovery/consul.go
    • Line 7: warning: exported type ConsulControl should have comment or be unexported (golint)
    • Line 12: warning: exported function ConnConsul should have comment or be unexported (golint)
    • Line 21: warning: exported method ConsulControl.Register should have comment or be unexported (golint)
    • Line 31: warning: exported method ConsulControl.UnRegister should have comment or be unexported (golint)
    • addsvc/addservice/service.go
    • Line 11: warning: exported type AddService should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported function NewBasicService should have comment or be unexported (golint)
    • Line 33: warning: exported var ErrTwoZeroes should have comment or be unexported (golint)
    • usersvc/endpoints/endpoints.go
    • Line 10: warning: exported type EndpointSet should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported type RegisterRequest should have comment or be unexported (golint)
    • Line 27: warning: exported type RegisterResponse should have comment or be unexported (golint)
    • conn/mongo.go
    • Line 29: warning: exported type MongoDatabase should have comment or be unexported (golint)
    • Line 35: warning: exported var MongoDB should have comment or be unexported (golint)
    • Line 37: warning: exported function NewMongoDatabase should have comment or be unexported (golint)
    • Line 58: warning: exported method MongoDatabase.Close should have comment or be unexported (golint)
    • usersvc/start.go
    • Line 22: warning: exported function StartUserSVCService should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!