Preparing report...

Report for github.com/goplus/hdq

(v0.6.0)

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


golint42%

Golint is a linter for Go source code.

    • stream/stream.go
    • Line 25: warning: exported function SplitSchema should have comment or be unexported (golint)
    • Line 37: warning: exported type OpenFunc should have comment or be unexported (golint)
    • Line 43: warning: exported function RegisterSchema should have comment or be unexported (golint)
    • Line 47: warning: exported function Open should have comment or be unexported (golint)
    • stream/http/httpstrm.go
    • Line 26: warning: exported var ReqHeaderProc should have comment or be unexported (golint)
    • Line 36: warning: exported function Opens should have comment or be unexported (golint)
    • hdq.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 29: warning: exported const GopPackage should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 48: warning: exported type NodeEnum should have comment or be unexported (golint)
    • Line 56: warning: exported type NodeSet should have comment or be unexported (golint)
    • Line 89: warning: exported method NodeSet.Ok should have comment or be unexported (golint)
    • Line 93: warning: exported method NodeSet.All should have comment or be unexported (golint)
    • Line 104: warning: exported method NodeSet.Gop_Enum should have comment or be unexported (golint)
    • Line 104: warning: don't use underscores in Go names; method Gop_Enum should be GopEnum (golint)
    • Line 114: warning: exported method NodeSet.ForEach should have comment or be unexported (golint)
    • Line 168: warning: exported function Nodes should have comment or be unexported (golint)
    • Line 205: warning: exported method NodeSet.Any should have comment or be unexported (golint)
    • Line 259: warning: exported method NodeSet.Child should have comment or be unexported (golint)
    • Line 263: warning: exported method NodeSet.ChildN should have comment or be unexported (golint)
    • Line 273: warning: exported method NodeSet.Parent should have comment or be unexported (golint)
    • Line 277: warning: exported method NodeSet.ParentN should have comment or be unexported (golint)
    • Line 281: warning: exported method NodeSet.One should have comment or be unexported (golint)
    • Line 321: warning: exported method NodeSet.NextSibling should have comment or be unexported (golint)
    • Line 328: warning: exported method NodeSet.PrevSibling should have comment or be unexported (golint)
    • Line 349: warning: exported method NodeSet.PrevSiblings should have comment or be unexported (golint)
    • Line 373: warning: exported method NodeSet.NextSiblings should have comment or be unexported (golint)
    • Line 397: warning: exported method NodeSet.FirstChild should have comment or be unexported (golint)
    • Line 404: warning: exported method NodeSet.FirstTextChild should have comment or be unexported (golint)
    • Line 408: warning: exported method NodeSet.FirstElementChild should have comment or be unexported (golint)
    • Line 429: warning: exported method NodeSet.LastChild should have comment or be unexported (golint)
    • Line 436: warning: exported method NodeSet.LastTextChild should have comment or be unexported (golint)
    • Line 440: warning: exported method NodeSet.LastElementChild should have comment or be unexported (golint)
    • Line 460: warning: exported method NodeSet.Match should have comment or be unexported (golint)
    • Line 489: warning: exported method NodeSet.ChildrenAsText should have comment or be unexported (golint)
    • Line 498: warning: exported method NodeSet.CollectOne should have comment or be unexported (golint)
    • Line 521: warning: exported method NodeSet.Collect should have comment or be unexported (golint)
    • hdq_helper.go
    • Line 325: warning: comment on exported method NodeSet.Href__0 should be of the form "Href__0 ..." (golint)
    • Line 326: warning: don't use underscores in Go names; method Href__0 should be Href0 (golint)
    • Line 330: warning: comment on exported method NodeSet.Href__1 should be of the form "Href__1 ..." (golint)
    • Line 331: warning: don't use underscores in Go names; method Href__1 should be Href1 (golint)
    • Line 335: warning: exported method NodeSet.Attr__0 should have comment or be unexported (golint)
    • Line 335: warning: don't use underscores in Go names; method Attr__0 should be Attr0 (golint)
    • Line 339: warning: exported method NodeSet.Attr__1 should have comment or be unexported (golint)
    • Line 339: warning: don't use underscores in Go names; method Attr__1 should be Attr1 (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!