elliotchance/gedcom

View on GitHub
date_range.go

Summary

Maintainability
A
0 mins
Test Coverage

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

// After returns true if the end date is after the other end date.
Severity: Minor
Found in date_range.go by golint

exported function NewZeroDateRange should have comment or be unexported
Open

func NewZeroDateRange() DateRange {
Severity: Minor
Found in date_range.go by golint

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

func (dr DateRange) Sub(dr2 DateRange) DurationRange {
Severity: Minor
Found in date_range.go by golint

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

func (dr DateRange) StartAndEndDates() (Date, Date) {
Severity: Minor
Found in date_range.go by golint

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

// Start is the lower boundary of the date range.
Severity: Minor
Found in date_range.go by golint

exported method DateRange.Duration should have comment or be unexported
Open

func (dr DateRange) Duration() Duration {
Severity: Minor
Found in date_range.go by golint

exported function NewDateRangeWithString should have comment or be unexported
Open

func NewDateRangeWithString(s string) (dr DateRange) {
Severity: Minor
Found in date_range.go by golint

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

// Before returns true if the start date is before the other start date.
Severity: Minor
Found in date_range.go by golint

exported method DateRange.ParseError should have comment or be unexported
Open

func (dr DateRange) ParseError() error {
Severity: Minor
Found in date_range.go by golint

exported method DateRange.Compare should have comment or be unexported
Open

func (dr DateRange) Compare(dr2 DateRange) DateRangeComparison {
Severity: Minor
Found in date_range.go by golint

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

// End is the upper boundary of the date range.
Severity: Minor
Found in date_range.go by golint

There are no issues that match your filters.

Category
Status