Showing 12 of 12 total issues
Function FromString
has 7 return statements (exceeds 4 allowed). Open
Open
func FromString(s string) (Date, error) {
if len(s) == 0 {
return 0, nil
}
if len(s) != 10 {
exported function MustFromString should have comment or be unexported Open
Open
func MustFromString(s string) Date {
- Exclude checks
receiver name d1 should be consistent with previous receiver name d for Date Open
Open
func (d1 Date) Sub(d2 Date) int {
- Exclude checks
2: cannot find package "github.com/carlosjhr64/jd" in any of: Open
Open
"github.com/carlosjhr64/jd"
- Exclude checks
exported method Date.IsZero should have comment or be unexported Open
Open
func (d Date) IsZero() bool {
- Exclude checks
exported method Date.JD should have comment or be unexported Open
Open
func (d Date) JD() int {
- Exclude checks
exported function MustParse should have comment or be unexported Open
Open
func MustParse(format string, date string) Date {
- Exclude checks
exported function FromJD should have comment or be unexported Open
Open
func FromJD(j int) Date {
- Exclude checks
exported method Date.Time should have comment or be unexported Open
Open
func (d Date) Time() time.Time {
- Exclude checks
exported const Zero should have comment or be unexported Open
Open
const Zero = Date(0)
- Exclude checks
exported function FromTime should have comment or be unexported Open
Open
func FromTime(t time.Time) Date {
- Exclude checks
exported method Date.Sub should have comment or be unexported Open
Open
func (d1 Date) Sub(d2 Date) int {
- Exclude checks