licenser icon indicating copy to clipboard operation
licenser copied to clipboard

Fix skipExistingHeaders on long files without headers yet

Open Technici4n opened this issue 2 years ago • 0 comments

The problem is that in PreparedCommentHeader there is a reader.mark(2048) call but the contentStartsWithValidHeaderFormat check can use a lot more than 2048 since it scans the entire file. Prevent this by stopping the scan once contentLinesMatch is false.

Technici4n avatar Oct 19 '23 12:10 Technici4n