Showing 12 of 12 total issues

Function FromString has 7 return statements (exceeds 4 allowed).
Open

func FromString(s string) (Date, error) {
    if len(s) == 0 {
        return 0, nil
    }
    if len(s) != 10 {
Severity: Major
Found in date.go - About 45 mins to fix

    exported function MustFromString should have comment or be unexported
    Open

    func MustFromString(s string) Date {
    Severity: Minor
    Found in date.go by golint

    receiver name d1 should be consistent with previous receiver name d for Date
    Open

    func (d1 Date) Sub(d2 Date) int {
    Severity: Minor
    Found in date.go by golint

    2: cannot find package "github.com/carlosjhr64/jd" in any of:
    Open

        "github.com/carlosjhr64/jd"
    Severity: Minor
    Found in date.go by govet

    exported method Date.IsZero should have comment or be unexported
    Open

    func (d Date) IsZero() bool {
    Severity: Minor
    Found in date.go by golint

    exported method Date.JD should have comment or be unexported
    Open

    func (d Date) JD() int {
    Severity: Minor
    Found in date.go by golint

    exported function MustParse should have comment or be unexported
    Open

    func MustParse(format string, date string) Date {
    Severity: Minor
    Found in date.go by golint

    exported function FromJD should have comment or be unexported
    Open

    func FromJD(j int) Date {
    Severity: Minor
    Found in date.go by golint

    exported method Date.Time should have comment or be unexported
    Open

    func (d Date) Time() time.Time {
    Severity: Minor
    Found in date.go by golint

    exported const Zero should have comment or be unexported
    Open

    const Zero = Date(0)
    Severity: Minor
    Found in date.go by golint

    exported function FromTime should have comment or be unexported
    Open

    func FromTime(t time.Time) Date {
    Severity: Minor
    Found in date.go by golint

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

    func (d1 Date) Sub(d2 Date) int {
    Severity: Minor
    Found in date.go by golint
    Severity
    Category
    Status
    Source
    Language