Skip to content

Commit 063058c

Browse files
committed
fix: the diff processor should not hide typecheck errors
1 parent 54bfac8 commit 063058c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/result/processors/diff.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ func (p Diff) Process(issues []result.Issue) ([]result.Issue, error) {
6565
}
6666

6767
return transformIssues(issues, func(issue *result.Issue) *result.Issue {
68+
if issue.FromLinter == "typecheck" {
69+
// Never hide typechecking errors.
70+
return issue
71+
}
72+
6873
hunkPos, isNew := c.IsNewIssue(issue)
6974
if !isNew {
7075
return nil

0 commit comments

Comments
 (0)