Skip to content

autogenerated_exclude: bufio.Scanner: token too long #954

Closed
@ernado

Description

@ernado

As mentioned in comment by @agnivade:

Ok, so this error has gone away, but this release seems to have new bugs :(

WARN [runner] Can't process result by autogenerated_exclude processor: can't filter issue result.Issue{FromLinter:"golint", Text:"exported var SystemEmojis should have comment or be unexported", SourceLines:[]string(nil), Replacement:(*result.Replacement)(nil), Pkg:(*packages.Package)(0xc0017860f0), LineRange:(*result.Range)(nil), Pos:token.Position{Filename:"model/emoji_data.go", Offset:132, Line:6, Column:5}, HunkPos:0}: failed to get doc of file model/emoji_data.go: failed to scan file: bufio.Scanner: token too long 

It seems like #484, but it wasn't there in 1.21.

We cannot migrate to 1.23.2 unless we get a clean output without any warnings.

I am going to close this issue as this seems to have been fixed. Thanks for your work.

Seems like we can just increase buffer size of scanner.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions