Skip to content

Commit 4285e92

Browse files
committed
remove hardcoded limit for typecheck
1 parent 950b9b6 commit 4285e92

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/result/processors/max_per_file_from_linter.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ type MaxPerFileFromLinter struct {
1616
var _ Processor = &MaxPerFileFromLinter{}
1717

1818
func NewMaxPerFileFromLinter(cfg *config.Config) *MaxPerFileFromLinter {
19-
maxPerFileFromLinterConfig := map[string]int{
20-
"typecheck": 3,
21-
}
19+
maxPerFileFromLinterConfig := map[string]int{}
20+
2221
if !cfg.Issues.NeedFix {
2322
// if we don't fix we do this limiting to not annoy user;
2423
// otherwise we need to fix all issues in the file at once

test/testdata/notcompiles/typecheck_many_issues.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ func TypeCheckBadCalls() {
55
typecheckNotExists1.F1() // ERROR "undeclared name: `typecheckNotExists1`"
66
typecheckNotExists2.F2() // ERROR "undeclared name: `typecheckNotExists2`"
77
typecheckNotExists3.F3() // ERROR "undeclared name: `typecheckNotExists3`"
8-
typecheckNotExists4.F4()
8+
typecheckNotExists4.F4() // ERROR "undeclared name: `typecheckNotExists4`"
99
}

0 commit comments

Comments
 (0)