Preparing report...

Report for github.com/go-kivik/kivikmock

A+    Excellent!    Found 4 issues across 38 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!


golint92%

Golint is a linter for Go source code.

    • kivikmock/clientmock.go
    • Line 166: warning: exported method Replication.MarshalJSON should have comment or be unexported (golint)
    • Line 194: warning: exported method Replication.ID should have comment or be unexported (golint)
    • Line 199: warning: exported method Replication.Source should have comment or be unexported (golint)
    • Line 204: warning: exported method Replication.Target should have comment or be unexported (golint)
    • Line 209: warning: exported method Replication.StartTime should have comment or be unexported (golint)
    • Line 214: warning: exported method Replication.EndTime should have comment or be unexported (golint)
    • Line 219: warning: exported method Replication.State should have comment or be unexported (golint)
    • Line 224: warning: exported method Replication.Err should have comment or be unexported (golint)
    • kivikmock/expectations.go
    • Line 336: warning: exported method ExpectedConfig.WithNode should have comment or be unexported (golint)
    • Line 353: warning: exported method ExpectedConfigSection.WithNode should have comment or be unexported (golint)
    • Line 358: warning: exported method ExpectedConfigSection.WithSection should have comment or be unexported (golint)
    • Line 376: warning: exported method ExpectedConfigValue.WithNode should have comment or be unexported (golint)
    • Line 381: warning: exported method ExpectedConfigValue.WithSection should have comment or be unexported (golint)
    • Line 386: warning: exported method ExpectedConfigValue.WithKey should have comment or be unexported (golint)
    • Line 405: warning: exported method ExpectedSetConfigValue.WithNode should have comment or be unexported (golint)
    • Line 410: warning: exported method ExpectedSetConfigValue.WithSection should have comment or be unexported (golint)
    • Line 415: warning: exported method ExpectedSetConfigValue.WithKey should have comment or be unexported (golint)
    • Line 420: warning: exported method ExpectedSetConfigValue.WithValue should have comment or be unexported (golint)
    • Line 438: warning: exported method ExpectedDeleteConfigKey.WithNode should have comment or be unexported (golint)
    • Line 443: warning: exported method ExpectedDeleteConfigKey.WithSection should have comment or be unexported (golint)
    • Line 448: warning: exported method ExpectedDeleteConfigKey.WithKey should have comment or be unexported (golint)
    • Line 466: warning: exported method ExpectedReplicate.WithSource should have comment or be unexported (golint)
    • Line 471: warning: exported method ExpectedReplicate.WithTarget should have comment or be unexported (golint)
    • kivikmock/gen/render.go
    • Line 22: warning: exported function RenderExpectationsGo should have comment or be unexported (golint)
    • Line 30: warning: exported function RenderClientGo should have comment or be unexported (golint)
    • Line 38: warning: exported function RenderMockGo should have comment or be unexported (golint)
    • Line 46: warning: exported function RenderDriverMethod should have comment or be unexported (golint)
    • Line 52: warning: exported function RenderExpectedType should have comment or be unexported (golint)
    • Line 58: warning: exported method Method.DriverArgs should have comment or be unexported (golint)
    • Line 72: warning: exported method Method.ReturnArgs should have comment or be unexported (golint)
    • Line 86: warning: exported method Method.VariableDefinitions should have comment or be unexported (golint)
    • Line 117: warning: exported method Method.ExpectedVariables should have comment or be unexported (golint)
    • Line 126: warning: exported method Method.InputVariables should have comment or be unexported (golint)
    • Line 144: warning: exported method Method.Variables should have comment or be unexported (golint)
    • Line 166: warning: exported method Method.ZeroReturns should have comment or be unexported (golint)
    • Line 187: warning: exported method Method.ExpectedReturns should have comment or be unexported (golint)
    • Line 217: warning: exported method Method.ReturnTypes should have comment or be unexported (golint)
    • Line 251: warning: exported method Method.SetExpectations should have comment or be unexported (golint)
    • Line 278: warning: exported method Method.MetExpectations should have comment or be unexported (golint)
    • Line 301: warning: exported method Method.MethodArgs should have comment or be unexported (golint)
    • Line 339: warning: comment on exported method Method.CallbackTypes should be of the form "CallbackTypes ..." (golint)
    • Line 369: warning: exported method Method.CallbackReturns should have comment or be unexported (golint)

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!