Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
go-xmldom/node.go
- Line 5: warning: exported type Node should have comment or be unexported (golint)
- Line 14: warning: exported type Attribute should have comment or be unexported (golint)
- Line 19: warning: exported method Node.Root should have comment or be unexported (golint)
- Line 23: warning: exported method Node.GetAttribute should have comment or be unexported (golint)
- Line 32: warning: exported method Node.GetAttributeValue should have comment or be unexported (golint)
- Line 40: warning: exported method Node.SetAttributeValue should have comment or be unexported (golint)
- Line 50: warning: exported method Node.RemoveAttribute should have comment or be unexported (golint)
- Line 60: warning: exported method Node.GetChild should have comment or be unexported (golint)
- Line 69: warning: exported method Node.GetChildren should have comment or be unexported (golint)
- Line 79: warning: exported method Node.FirstChild should have comment or be unexported (golint)
- Line 86: warning: exported method Node.LastChild should have comment or be unexported (golint)
- Line 93: warning: exported method Node.PrevSibling should have comment or be unexported (golint)
- Line 107: warning: exported method Node.NextSibling should have comment or be unexported (golint)
- Line 121: warning: exported method Node.CreateNode should have comment or be unexported (golint)
- Line 129: warning: exported method Node.AppendChild should have comment or be unexported (golint)
- Line 136: warning: exported method Node.RemoveChild should have comment or be unexported (golint)
- Line 146: warning: exported method Node.FindByID should have comment or be unexported (golint)
- Line 160: warning: exported method Node.FindOneByName should have comment or be unexported (golint)
- Line 174: warning: exported method Node.FindByName should have comment or be unexported (golint)
- Line 188: warning: exported method Node.Query should have comment or be unexported (golint)
- Line 192: warning: exported method Node.QueryOne should have comment or be unexported (golint)
- Line 196: warning: exported method Node.QueryEach should have comment or be unexported (golint)
- Line 200: warning: exported method Node.XML should have comment or be unexported (golint)
- Line 206: warning: exported method Node.XMLPretty should have comment or be unexported (golint)
- Line 212: warning: exported method Node.XMLPrettyEx should have comment or be unexported (golint)
-
go-xmldom/document.go
- Line 8: warning: exported const DEFAULT_XML_HEADER should have comment (or a comment on this block) or be unexported (golint)
- Line 11: warning: exported function NewDocument should have comment or be unexported (golint)
- Line 22: warning: exported type Document should have comment or be unexported (golint)
- Line 28: warning: exported method Document.XML should have comment or be unexported (golint)
- Line 38: warning: exported method Document.XMLPretty should have comment or be unexported (golint)
- Line 52: warning: exported method Document.XMLPrettyEx should have comment or be unexported (golint)
-
go-xmldom/dom.go
- Line 1: warning: package comment should be of the form "Package xmldom ..." (golint)
- Line 12: warning: exported function Must should have comment or be unexported (golint)
- Line 19: warning: exported function ParseXML should have comment or be unexported (golint)
- Line 23: warning: exported function ParseFile should have comment or be unexported (golint)
- Line 33: warning: exported function Parse should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!