Preparing report...

Report for github.com/xrfang/fxml

(v1.2.1)

A    Great!    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!


gocyclo71%

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.

    • parser.go
    • Line 27: warning: cyclomatic complexity 23 of function (*XMLTree).parse() is high (> 15) (gocyclo)
    • encode.go
    • Line 34: warning: cyclomatic complexity 22 of function escapeText() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 17 of function isValidDirective() is high (> 15) (gocyclo)

golint28%

Golint is a linter for Go source code.

    • traverse.go
    • Line 5: warning: comment on exported type XTraverser should be of the form "XTraverser ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported method XMLTree.Traverse should be of the form "Traverse ..." (golint)
    • walk.go
    • Line 4: warning: comment on exported type XNodInfo should be of the form "XNodInfo ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type XWalkResult should be of the form "XWalkResult ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported type XWalker should be of the form "XWalker ..." (with optional leading article) (golint)
    • Line 30: warning: exported const WRCont should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: comment on exported method XMLTree.Walk should be of the form "Walk ..." (golint)
    • encode.go
    • Line 182: warning: comment on exported method XMLTree.Encode should be of the form "Encode ..." (golint)
    • nconv.go
    • Line 11: warning: comment on exported type Converter should be of the form "Converter ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type NConv should be of the form "NConv ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported method NConv.Init should be of the form "Init ..." (golint)
    • Line 48: warning: comment on exported method NConv.ToString should be of the form "ToString ..." (golint)
    • parser.go
    • Line 1: warning: package comment should be of the form "Package fxml ..." (golint)
    • Line 17: warning: exported type XMLTree should have comment or be unexported (golint)
    • Line 94: warning: comment on exported function Parse should be of the form "Parse ..." (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!