Preparing report...

Report for github.com/lab259/errors/v2

(v2.3.1)

A+    Excellent!    Found 14 issues across 47 files

Tweet

gofmt95%

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!


golint74%

Golint is a linter for Go source code.

    • testing/code.go
    • Line 60: warning: comment on exported method ErrorWithCodeMatcher.NegatedFailureMessage should be of the form "NegatedFailureMessage ..." (golint)
    • testing/reason.go
    • Line 11: warning: exported type ErrorWithReasonMatcher should have comment or be unexported (golint)
    • Line 15: warning: exported method ErrorWithReasonMatcher.Match should have comment or be unexported (golint)
    • Line 49: warning: exported method ErrorWithReasonMatcher.FailureMessage should have comment or be unexported (golint)
    • Line 53: warning: exported method ErrorWithReasonMatcher.NegatedFailureMessage should have comment or be unexported (golint)
    • errors.go
    • Line 5: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: exported function Http should have comment or be unexported (golint)
    • Line 16: warning: exported function Module should have comment or be unexported (golint)
    • Line 22: warning: exported function Code should have comment or be unexported (golint)
    • Line 28: warning: exported function Validation should have comment or be unexported (golint)
    • Line 34: warning: exported function Message should have comment or be unexported (golint)
    • Line 40: warning: exported function Combine should have comment or be unexported (golint)
    • Line 58: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 62: warning: exported function Is should have comment or be unexported (golint)
    • Line 78: warning: exported function Reason should have comment or be unexported (golint)
    • http.go
    • Line 10: warning: exported type HttpError should have comment or be unexported (golint)
    • testing/http.go
    • Line 60: warning: comment on exported method HttpErrorMatcher.NegatedFailureMessage should be of the form "NegatedFailureMessage ..." (golint)
    • Line 77: warning: comment on exported function HttpStatus should be of the form "HttpStatus ..." (golint)
    • testing/module.go
    • Line 60: warning: comment on exported method ErrorWithModuleMatcher.NegatedFailureMessage should be of the form "NegatedFailureMessage ..." (golint)
    • validation.go
    • Line 26: warning: exported type ErrorWithValidation should have comment or be unexported (golint)
    • Line 41: warning: exported method ValidationError.Errors should have comment or be unexported (golint)
    • Line 56: warning: exported method ValidationError.AppendData should have comment or be unexported (golint)
    • Line 92: warning: exported function WrapValidation 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!