Preparing report...

Report for github.com/raff/godet

A+    Excellent!    Found 3 issues across 6 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!


gocyclo66%

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.

    • godet/godet.go
    • Line 474: warning: cyclomatic complexity 17 of function (*RemoteDebugger).readMessages() is high (> 15) (gocyclo)

golint66%

Golint is a linter for Go source code.

    • godet/godet.go
    • Line 27: warning: comment on exported const EventDisconnect should be of the form "EventDisconnect ..." (golint)
    • Line 38: warning: exported const ErrorReasonFailed should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type IdType should have comment or be unexported (golint)
    • Line 69: warning: exported const NodeId should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: exported var MaxReadBufferSize should have comment or be unexported (golint)
    • Line 97: warning: comment on exported type DownloadBehavior should be of the form "DownloadBehavior ..." (with optional leading article) (golint)
    • Line 195: warning: exported type NavigationError should have comment or be unexported (golint)
    • Line 226: warning: exported method Params.Int should have comment or be unexported (golint)
    • Line 231: warning: exported method Params.Bool should have comment or be unexported (golint)
    • Line 236: warning: exported method Params.Map should have comment or be unexported (golint)
    • Line 244: warning: exported type ConnectOption should have comment or be unexported (golint)
    • Line 391: warning: exported method RemoteDebugger.Verbose should have comment or be unexported (golint)
    • Line 826: warning: comment on exported function PrintBackground should be of the form "PrintBackground ..." (golint)
    • Line 905: warning: comment on exported method RemoteDebugger.SetDownloadBehavior should be of the form "SetDownloadBehavior ..." (golint)
    • Line 933: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 938: warning: exported method RemoteDebugger.GetResponseBodyForInterception should have comment or be unexported (golint)
    • Line 952: warning: exported type Cookie should have comment or be unexported (golint)
    • Line 1017: warning: comment on exported method RemoteDebugger.SetCookies should be of the form "SetCookies ..." (golint)
    • Line 1026: warning: comment on exported method RemoteDebugger.SetCookie should be of the form "SetCookie ..." (golint)
    • Line 1058: warning: exported type ResourceType should have comment or be unexported (golint)
    • Line 1061: warning: exported const ResourceTypeDocument should have comment (or a comment on this block) or be unexported (golint)
    • Line 1079: warning: exported type InterceptionStage should have comment or be unexported (golint)
    • Line 1080: warning: exported type RequestStage should have comment or be unexported (golint)
    • Line 1083: warning: exported const StageRequest should have comment (or a comment on this block) or be unexported (golint)
    • Line 1090: warning: exported type RequestPattern should have comment or be unexported (golint)
    • Line 1096: warning: exported type FetchRequestPattern should have comment or be unexported (golint)
    • Line 1115: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1256: warning: exported method RemoteDebugger.FetchResponseBody should have comment or be unexported (golint)
    • Line 1414: warning: comment on exported function Budget should be of the form "Budget ..." (golint)
    • Line 1421: warning: comment on exported function MaxVirtualTimeTaskStarvationCount should be of the form "MaxVirtualTimeTaskStarvationCount ..." (golint)
    • Line 1428: warning: comment on exported function WaitForNavigation should be of the form "WaitForNavigation ..." (golint)
    • Line 1435: warning: comment on exported function InitialVirtualTime should be of the form "InitialVirtualTime ..." (golint)
    • Line 1489: warning: exported type MouseEvent should have comment or be unexported (golint)
    • Line 1490: warning: exported type KeyModifier should have comment or be unexported (golint)
    • Line 1493: warning: exported const MouseMove should have comment (or a comment on this block) or be unexported (golint)
    • Line 1505: warning: exported type MouseOption should have comment or be unexported (golint)
    • Line 1507: warning: exported function LeftButton should have comment or be unexported (golint)
    • Line 1513: warning: exported function RightButton should have comment or be unexported (golint)
    • Line 1519: warning: exported function MiddleButton should have comment or be unexported (golint)
    • Line 1525: warning: exported function Modifiers should have comment or be unexported (golint)
    • Line 1531: warning: exported function Clicks should have comment or be unexported (golint)
    • Line 1557: warning: exported type EvaluateOption should have comment or be unexported (golint)
    • Line 1559: warning: exported function UserGesture should have comment or be unexported (golint)
    • Line 1565: warning: exported function ReturnByValue should have comment or be unexported (golint)
    • Line 1571: warning: exported function Silent should have comment or be unexported (golint)
    • Line 1577: warning: exported function IncludeCommandLineAPI should have comment or be unexported (golint)
    • Line 1583: warning: exported function GeneratePreview should have comment or be unexported (golint)
    • Line 1589: warning: exported function ThrowOnSideEffect should have comment or be unexported (golint)
    • Line 1648: warning: exported method RemoteDebugger.GetCertificate should have comment or be unexported (golint)
    • Line 1662: warning: exported method RemoteDebugger.ClearBrowserCache should have comment or be unexported (golint)
    • Line 1667: warning: exported method RemoteDebugger.ClearBrowserCookies 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!


misspell66%

Misspell Finds commonly misspelled English words

    • godet/godet.go
    • Line 1435: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 1540: warning: "possibily" is a misspelling of "possibility" (misspell)