elliotchance/gedcom

View on GitHub
html/partners_and_children.go

Summary

Maintainability
A
1 hr
Test Coverage

Method PartnersAndChildren.WriteHTMLTo has 51 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *PartnersAndChildren) WriteHTMLTo(w io.Writer) (int64, error) {
    heading := core.NewHeading(2, "", core.NewText("Spouses & Children"))
    column := core.NewColumn(core.EntireRow, heading)

    rows := []core.Component{
Severity: Minor
Found in html/partners_and_children.go - About 1 hr to fix

    exported method PartnersAndChildren.WriteHTMLTo should have comment or be unexported
    Open

    func (c *PartnersAndChildren) WriteHTMLTo(w io.Writer) (int64, error) {
    Severity: Minor
    Found in html/partners_and_children.go by golint

    exported function NewPartnersAndChildren should have comment or be unexported
    Open

    func NewPartnersAndChildren(document *gedcom.Document, individual *gedcom.IndividualNode, visibility LivingVisibility, placesMap map[string]*place) *PartnersAndChildren {
    Severity: Minor
    Found in html/partners_and_children.go by golint

    There are no issues that match your filters.

    Category
    Status