elliotchance/gedcom

View on GitHub
document.go

Summary

Maintainability
A
0 mins
Test Coverage

package comment should be of the form "Package gedcom ..."
Open

// Traversing a Document
Severity: Minor
Found in document.go by golint

exported method Document.Warnings should have comment or be unexported
Open

func (doc *Document) Warnings() (warnings Warnings) {
Severity: Minor
Found in document.go by golint

exported method Document.AddFamilyWithHusbandAndWife should have comment or be unexported
Open

func (doc *Document) AddFamilyWithHusbandAndWife(pointer string, husband, wife *IndividualNode) *FamilyNode {
Severity: Minor
Found in document.go by golint

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

// Traversing a Document
Severity: Minor
Found in document.go by gofmt

exported method Document.SetNodes should have comment or be unexported
Open

func (doc *Document) SetNodes(nodes Nodes) {
Severity: Minor
Found in document.go by golint

exported method Document.AddFamily should have comment or be unexported
Open

func (doc *Document) AddFamily(pointer string) *FamilyNode {
Severity: Minor
Found in document.go by golint

exported method Document.DeleteNode should have comment or be unexported
Open

func (doc *Document) DeleteNode(node Node) (didDelete bool) {
Severity: Minor
Found in document.go by golint

comment on exported method Document.Sources should be of the form "Sources ..."
Open

// TODO: Needs tests
Severity: Minor
Found in document.go by golint

exported method Document.AddIndividual should have comment or be unexported
Open

func (doc *Document) AddIndividual(pointer string, children ...Node) *IndividualNode {
Severity: Minor
Found in document.go by golint

comment on exported method Document.Places should be of the form "Places ..."
Open

// TODO: needs tests
Severity: Minor
Found in document.go by golint

There are no issues that match your filters.

Category
Status