elliotchance/gedcom

View on GitHub
html/statistics_page.go

Summary

Maintainability
A
35 mins
Test Coverage

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

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

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

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

    exported function NewStatisticsPage should have comment or be unexported
    Open

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

    exported type StatisticsPage should have comment or be unexported
    Open

    type StatisticsPage struct {
    Severity: Minor
    Found in html/statistics_page.go by golint

    There are no issues that match your filters.

    Category
    Status