elliotchance/gedcom

View on GitHub
date_node.go

Summary

Maintainability
A
0 mins
Test Coverage

Your code does not pass gofmt in 2 places. Go fmt your code!
Open

package gedcom
Severity: Minor
Found in date_node.go by gofmt

exported method DateNode.Equals should have comment or be unexported
Open

func (node *DateNode) Equals(node2 Node) bool {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.StartDate should have comment or be unexported
Open

func (node *DateNode) StartDate() Date {
Severity: Minor
Found in date_node.go by golint

comment on exported method DateNode.DateRange should be of the form "DateRange ..."
Open

// If the node is nil both results will be zero dates.
Severity: Minor
Found in date_node.go by golint

exported method DateNode.Sub should have comment or be unexported
Open

func (node *DateNode) Sub(node2 *DateNode) (min Duration, max Duration, errs error) {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.Similarity should have comment or be unexported
Open

func (node *DateNode) Similarity(node2 *DateNode, maxYears float64) float64 {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.IsAfter should have comment or be unexported
Open

func (node *DateNode) IsAfter(node2 *DateNode) bool {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.IsExact should have comment or be unexported
Open

func (node *DateNode) IsExact() bool {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.IsValid should have comment or be unexported
Open

func (node *DateNode) IsValid() bool {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.IsPhrase should have comment or be unexported
Open

func (node *DateNode) IsPhrase() bool {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.EndDate should have comment or be unexported
Open

func (node *DateNode) EndDate() Date {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.StartAndEndDates should have comment or be unexported
Open

func (node *DateNode) StartAndEndDates() (Date, Date) {
Severity: Minor
Found in date_node.go by golint

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

func (node *DateNode) Warnings() Warnings {
Severity: Minor
Found in date_node.go by golint

exported method DateNode.IsBefore should have comment or be unexported
Open

func (node *DateNode) IsBefore(node2 *DateNode) bool {
Severity: Minor
Found in date_node.go by golint

There are no issues that match your filters.

Category
Status