Preparing report...

Report for github.com/wkhere/htmlx

(v0.7.1)

A+    Excellent!    Found 5 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.

    • pred/pred.go
    • Line 10: warning: exported type Predicate should have comment or be unexported (golint)
    • Line 12: warning: exported function Element should have comment or be unexported (golint)
    • Line 18: warning: exported function Attr should have comment or be unexported (golint)
    • Line 24: warning: exported function AttrCond should have comment or be unexported (golint)
    • Line 30: warning: exported function AttrWord should have comment or be unexported (golint)
    • Line 36: warning: exported function AttrWordCond should have comment or be unexported (golint)
    • Line 42: warning: exported function ID should have comment or be unexported (golint)
    • Line 48: warning: exported function IDCond should have comment or be unexported (golint)
    • Line 54: warning: exported function Class should have comment or be unexported (golint)
    • Line 60: warning: exported function ClassCond should have comment or be unexported (golint)
    • Line 66: warning: exported function InnerText should have comment or be unexported (golint)
    • Line 74: warning: exported function InnerTextCond should have comment or be unexported (golint)
    • attr/attr.go
    • Line 9: warning: exported type List should have comment or be unexported (golint)
    • Line 10: warning: exported type L should have comment or be unexported (golint)
    • Line 12: warning: exported method L.Val should have comment or be unexported (golint)
    • Line 21: warning: exported method L.ID should have comment or be unexported (golint)
    • Line 25: warning: exported method L.ClassList should have comment or be unexported (golint)
    • Line 33: warning: exported method L.Exists should have comment or be unexported (golint)
    • Line 42: warning: exported method L.HasVal should have comment or be unexported (golint)
    • Line 50: warning: exported method L.HasValCond should have comment or be unexported (golint)
    • Line 58: warning: exported method L.HasWord should have comment or be unexported (golint)
    • Line 71: warning: exported method L.HasWordCond should have comment or be unexported (golint)
    • Line 84: warning: exported method L.HasID should have comment or be unexported (golint)
    • Line 88: warning: exported method L.HasIDCond should have comment or be unexported (golint)
    • Line 92: warning: exported method L.HasClass should have comment or be unexported (golint)
    • Line 96: warning: exported method L.HasClassCond should have comment or be unexported (golint)
    • pp/print.go
    • Line 20: warning: exported type Printer should have comment or be unexported (golint)
    • Line 25: warning: exported method Printer.Print should have comment or be unexported (golint)
    • finder.go
    • Line 13: warning: exported type Finder should have comment or be unexported (golint)
    • Line 17: warning: exported function FinderFromNode should have comment or be unexported (golint)
    • Line 21: warning: exported function FinderFromData should have comment or be unexported (golint)
    • Line 26: warning: exported function FinderFromString should have comment or be unexported (golint)
    • Line 30: warning: exported method Finder.IsEmpty should have comment or be unexported (golint)
    • Line 43: warning: exported method Finder.Parent should have comment or be unexported (golint)
    • Line 50: warning: exported method Finder.FirstChild should have comment or be unexported (golint)
    • Line 57: warning: exported method Finder.LastChild should have comment or be unexported (golint)
    • Line 64: warning: exported method Finder.PrevSibling should have comment or be unexported (golint)
    • Line 71: warning: exported method Finder.NextSibling should have comment or be unexported (golint)
    • Line 78: warning: exported method Finder.Attr 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!


misspell85%

Misspell Finds commonly misspelled English words

    • finder_test.go
    • Line 187: warning: "ther" is a misspelling of "there" (misspell)
    • Line 188: warning: "ther" is a misspelling of "there" (misspell)
    • Line 208: warning: "ther" is a misspelling of "there" (misspell)
    • Line 211: warning: "ther" is a misspelling of "there" (misspell)