You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result.subErrors=append(result.subErrors, errors.New("package name must not be empty"))
61
70
}
62
71
72
+
iflen(m.ShortDescription) >256 {
73
+
result.subErrors=append(result.subErrors, fmt.Errorf("short description must not be more than 128 characters, found %d characters", len(m.ShortDescription)))
74
+
}
75
+
76
+
fori, maintainer:=rangem.Maintainers {
77
+
ifmaintainer.Name==""&&maintainer.Email=="" {
78
+
result.subErrors=append(result.subErrors, fmt.Errorf("maintainer at index %d must not be empty", i))
79
+
}
80
+
}
81
+
fori, link:=rangem.Links {
82
+
iflink.Name==""&&link.URL=="" {
83
+
result.subErrors=append(result.subErrors, fmt.Errorf("link at index %d must not be empty", i))
84
+
}
85
+
}
86
+
fori, keyword:=rangem.Keywords {
87
+
ifkeyword=="" {
88
+
result.subErrors=append(result.subErrors, fmt.Errorf("keyword at index %d must not be empty", i))
0 commit comments