elliotchance/gedcom

View on GitHub
html/surname_list_page.go

Summary

Maintainability
A
35 mins
Test Coverage

Function NewSurnameListPage has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func NewSurnameListPage(document *gedcom.Document, googleAnalyticsID string, options *PublishShowOptions, indexLetters []rune, placesMap map[string]*place) *SurnameListPage {
Severity: Minor
Found in html/surname_list_page.go - About 35 mins to fix

    exported type SurnameListPage should have comment or be unexported
    Open

    type SurnameListPage struct {
    Severity: Minor
    Found in html/surname_list_page.go by golint

    exported function NewSurnameListPage should have comment or be unexported
    Open

    func NewSurnameListPage(document *gedcom.Document, googleAnalyticsID string, options *PublishShowOptions, indexLetters []rune, placesMap map[string]*place) *SurnameListPage {
    Severity: Minor
    Found in html/surname_list_page.go by golint

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

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

    There are no issues that match your filters.

    Category
    Status