Preparing report...

Report for github.com/BraspagDevelopers/mock-server-client

A    Great!    Found 4 issues across 4 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!


golint0%

Golint is a linter for Go source code.

    • mock-server-client/client.go
    • Line 12: warning: exported type MockServerClient should have comment or be unexported (golint)
    • Line 78: warning: don't use underscores in Go names; var err_verify should be errVerify (golint)
    • Line 79: warning: don't use underscores in Go names; var err_clear should be errClear (golint)
    • Line 93: warning: don't use underscores in Go names; var err_verify should be errVerify (golint)
    • Line 94: warning: don't use underscores in Go names; var err_clear should be errClear (golint)
    • Line 104: warning: comment on exported method MockServerClient.RegisterExpectation should be of the form "RegisterExpectation ..." (golint)
    • mock-server-client/expectation.go
    • Line 3: warning: exported type Expectation should have comment or be unexported (golint)
    • Line 9: warning: exported function NewExpectation should have comment or be unexported (golint)
    • Line 15: warning: exported method Expectation.WithResponse should have comment or be unexported (golint)
    • Line 20: warning: exported method Expectation.WithPriority should have comment or be unexported (golint)
    • Line 25: warning: exported type Response should have comment or be unexported (golint)
    • Line 31: warning: exported function NewResponseOK should have comment or be unexported (golint)
    • Line 37: warning: exported method Response.WithJSONBody should have comment or be unexported (golint)
    • Line 42: warning: exported method Response.WithHeader should have comment or be unexported (golint)
    • mock-server-client/matchers.go
    • Line 3: warning: exported type RequestMatcher should have comment or be unexported (golint)
    • Line 10: warning: exported method RequestMatcher.WithHeader should have comment or be unexported (golint)
    • Line 18: warning: exported type BodyMatcher should have comment or be unexported (golint)
    • Line 25: warning: exported const MatchBodyJSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported const StrictMatch should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported method RequestMatcher.WithJSONFields should have comment or be unexported (golint)
    • mock-server-client/times.go
    • Line 3: warning: exported type Times should have comment or be unexported (golint)
    • Line 8: warning: exported function Exactly should have comment or be unexported (golint)
    • Line 15: warning: exported function Once 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!