Preparing report...

Report for github.com/wmentor/html

A    Great!    Found 2 issues across 2 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!


gocyclo50%

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.

    • html/html.go
    • Line 140: warning: cyclomatic complexity 18 of function (*HTML).onStartTag() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • html/html.go
    • Line 18: warning: exported type HTML should have comment or be unexported (golint)
    • Line 28: warning: exported type GetOpts should have comment or be unexported (golint)
    • Line 36: warning: exported var ErrGetFailed should have comment or be unexported (golint)
    • Line 78: warning: exported function New should have comment or be unexported (golint)
    • Line 90: warning: exported method HTML.ParseString should have comment or be unexported (golint)
    • Line 106: warning: exported method HTML.Parse should have comment or be unexported (golint)
    • Line 256: warning: exported method HTML.Text should have comment or be unexported (golint)
    • Line 260: warning: exported method HTML.EachLink should have comment or be unexported (golint)
    • Line 273: warning: exported method HTML.EachImage should have comment or be unexported (golint)
    • Line 279: warning: exported method HTML.EachIframe should have comment or be unexported (golint)
    • Line 302: warning: exported method HTML.SetUrl should have comment or be unexported (golint)
    • Line 311: warning: exported method HTML.ResetUrl should have comment or be unexported (golint)
    • Line 315: warning: exported method HTML.Get should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.


misspell50%

Misspell Finds commonly misspelled English words