File tree 2 files changed +3
-4
lines changed
test/testdata/notcompiles
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ type MaxPerFileFromLinter struct {
16
16
var _ Processor = & MaxPerFileFromLinter {}
17
17
18
18
func NewMaxPerFileFromLinter (cfg * config.Config ) * MaxPerFileFromLinter {
19
- maxPerFileFromLinterConfig := map [string ]int {
20
- "typecheck" : 3 ,
21
- }
19
+ maxPerFileFromLinterConfig := map [string ]int {}
20
+
22
21
if ! cfg .Issues .NeedFix {
23
22
// if we don't fix we do this limiting to not annoy user;
24
23
// otherwise we need to fix all issues in the file at once
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ func TypeCheckBadCalls() {
5
5
typecheckNotExists1 .F1 () // ERROR "undeclared name: `typecheckNotExists1`"
6
6
typecheckNotExists2 .F2 () // ERROR "undeclared name: `typecheckNotExists2`"
7
7
typecheckNotExists3 .F3 () // ERROR "undeclared name: `typecheckNotExists3`"
8
- typecheckNotExists4 .F4 ()
8
+ typecheckNotExists4 .F4 () // ERROR "undeclared name: `typecheckNotExists4`"
9
9
}
You can’t perform that action at this time.
0 commit comments