Preparing report...

Report for github.com/go-ap/errors

A    Great!    Found 5 issues across 8 files

Tweet

gofmt62%

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!


golint75%

Golint is a linter for Go source code.

    • errors/decoding.go
    • Line 9: warning: exported function UnmarshalJSON should have comment or be unexported (golint)
    • Line 49: warning: exported method Err.UnmarshalJSON should have comment or be unexported (golint)
    • errors/http.go
    • Line 13: warning: exported type Error should have comment or be unexported (golint)
    • Line 66: warning: exported function WrapWithStatus should have comment or be unexported (golint)
    • Line 115: warning: exported function NotFoundf should have comment or be unexported (golint)
    • Line 118: warning: exported function NewNotFound should have comment or be unexported (golint)
    • Line 121: warning: exported function MethodNotAllowedf should have comment or be unexported (golint)
    • Line 124: warning: exported function NewMethodNotAllowed should have comment or be unexported (golint)
    • Line 127: warning: exported function NotValidf should have comment or be unexported (golint)
    • Line 130: warning: exported function NewNotValid should have comment or be unexported (golint)
    • Line 133: warning: exported function Forbiddenf should have comment or be unexported (golint)
    • Line 136: warning: exported function NewForbidden should have comment or be unexported (golint)
    • Line 139: warning: exported function NotImplementedf should have comment or be unexported (golint)
    • Line 142: warning: exported function NewNotImplemented should have comment or be unexported (golint)
    • Line 145: warning: exported function BadRequestf should have comment or be unexported (golint)
    • Line 148: warning: exported function NewBadRequest should have comment or be unexported (golint)
    • Line 151: warning: exported function Unauthorizedf should have comment or be unexported (golint)
    • Line 154: warning: exported function NewUnauthorized should have comment or be unexported (golint)
    • Line 157: warning: exported function NotSupportedf should have comment or be unexported (golint)
    • Line 160: warning: exported function NewNotSupported should have comment or be unexported (golint)
    • Line 163: warning: exported function Timeoutf should have comment or be unexported (golint)
    • Line 166: warning: exported function NewTimeout should have comment or be unexported (golint)
    • Line 169: warning: exported function BadGatewayf should have comment or be unexported (golint)
    • Line 172: warning: exported function NewBadGateway should have comment or be unexported (golint)
    • Line 175: warning: exported function IsBadRequest should have comment or be unexported (golint)
    • Line 180: warning: exported function IsForbidden should have comment or be unexported (golint)
    • Line 185: warning: exported function IsNotSupported should have comment or be unexported (golint)
    • Line 190: warning: exported function IsMethodNotAllowed should have comment or be unexported (golint)
    • Line 195: warning: exported function IsNotFound should have comment or be unexported (golint)
    • Line 200: warning: exported function IsNotImplemented should have comment or be unexported (golint)
    • Line 205: warning: exported function IsUnauthorized should have comment or be unexported (golint)
    • Line 210: warning: exported function IsTimeout should have comment or be unexported (golint)
    • Line 215: warning: exported function IsNotValid should have comment or be unexported (golint)
    • Line 221: warning: exported function IsBadGateway should have comment or be unexported (golint)
    • Line 472: warning: comment on exported type ErrorHandlerFn should be of the form "ErrorHandlerFn ..." (with optional leading article) (golint)
    • Line 496: warning: exported type Http should have comment or be unexported (golint)
    • Line 503: warning: exported function HttpErrors 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!