diff --git a/internal/linters/doc/note-check/note.go b/internal/linters/doc/note-check/note.go index 329db9e8..0f5795e2 100644 --- a/internal/linters/doc/note-check/note.go +++ b/internal/linters/doc/note-check/note.go @@ -31,7 +31,7 @@ func noteCheckHandler(log *xlog.Logger, a linters.Agent) error { for _, file := range a.PullRequestChangedFiles { fileName := file.GetFilename() // Only check go files - if filepath.Ext(fileName) != ".go" { + if filepath.Ext(fileName) != ".go" || file.GetStatus() == "removed" { continue }