Skip to content

Commit 8100507

Browse files
committed
autogenerated_exclude: increase scanner max buffer size
Ref: #954
1 parent 938e1dd commit 8100507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/result/processors/autogenerated_exclude.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ func getDoc(filePath string) (string, error) {
124124
// Issue 954: Some lines can be very long, e.g. auto-generated
125125
// embedded resources. Reported on file of 86.2KB.
126126
const (
127-
maxSize = 512 * 1024 // 512KB should be enough
128-
initialSize = 4096 // same as startBufSize in bufio
127+
maxSize = 10 * 1024 * 1024 // 10MB should be enough
128+
initialSize = 4096 // same as startBufSize in bufio
129129
)
130130
scanner.Buffer(make([]byte, initialSize), maxSize)
131131

0 commit comments

Comments
 (0)