Preparing report...

Report for github.com/inturn/kit

A+    Excellent!    Found 32 issues across 331 files

Tweet

gofmt96%

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!


gocyclo97%

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.


golint96%

Golint is a linter for Go source code.

    • kit/cmd/kitgen/replacewalk.go
    • Line 8: warning: comment on exported type Visitor should be of the form "Visitor ..." (with optional leading article) (golint)
    • Line 49: warning: comment on exported function WalkReplace should be of the form "WalkReplace ..." (golint)
    • kit/cmd/kitgen/templates/full.go
    • Line 13: warning: exported type ExampleService should have comment or be unexported (golint)
    • Line 16: warning: exported type ExampleRequest should have comment or be unexported (golint)
    • Line 20: warning: exported type ExampleResponse should have comment or be unexported (golint)
    • Line 25: warning: exported type Endpoints should have comment or be unexported (golint)
    • Line 29: warning: exported method ExampleService.ExampleEndpoint should have comment or be unexported (golint)
    • Line 45: warning: exported function NewHTTPHandler should have comment or be unexported (golint)
    • Line 51: warning: exported function DecodeExampleRequest should have comment or be unexported (golint)
    • Line 57: warning: exported function EncodeExampleResponse should have comment or be unexported (golint)
    • kit/sd/dnssrv/instancer.go
    • Line 96: warning: receiver name s should be consistent with previous receiver name p for Instancer (golint)
    • Line 101: warning: receiver name s should be consistent with previous receiver name p for Instancer (golint)
    • kit/metrics/cloudwatch/cloudwatch.go
    • Line 24: warning: exported type Percentiles should have comment or be unexported (golint)
    • Line 55: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 77: warning: exported function WithConcurrentRequests should have comment or be unexported (golint)
    • Line 114: warning: receiver name cw should be consistent with previous receiver name s for CloudWatch (golint)
    • Line 122: warning: receiver name cw should be consistent with previous receiver name s for CloudWatch (golint)
    • Line 131: warning: receiver name cw should be consistent with previous receiver name s for CloudWatch (golint)
    • Line 142: warning: receiver name cw should be consistent with previous receiver name s for CloudWatch (golint)
    • Line 152: warning: receiver name cw should be consistent with previous receiver name s for CloudWatch (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)