We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a460ba8 commit a75c727Copy full SHA for a75c727
internal/report/lint.go
@@ -259,6 +259,15 @@ func (r *Report) lintReviewStatus(l *linter) {
259
}
260
261
262
+func (r *Report) lintSource(l *linter) {
263
+ if r.SourceMeta == nil {
264
+ return
265
+ }
266
+ if !r.IsReviewed() && r.SourceMeta.ID == sourceGoTeam {
267
+ l.Errorf("source: if id=%s, report must be %s", sourceGoTeam, Reviewed)
268
269
+}
270
+
271
func (r *Report) countAdvisories() int {
272
advisoryCount := 0
273
for _, ref := range r.References {
@@ -496,6 +505,7 @@ func (r *Report) lint(pc *proxy.Client) []string {
496
505
497
506
r.lintReferences(l)
498
507
r.lintReviewStatus(l)
508
+ r.lintSource(l)
499
509
500
510
if r.hasTODOs() {
501
511
l.Error("contains one or more TODOs")
0 commit comments