Skip to content

Commit 89d93cd

Browse files
Add an explanation of choice of 20k characters
1 parent 0fe0b75 commit 89d93cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/codeql.ts

+3
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,9 @@ export function getExtraOptions(
901901
* printing many log lines.
902902
* (2) It avoids us hitting the limit of how much data we can send in our
903903
* status reports on GitHub.com.
904+
* This value was chosen because the maximum size of fields in the status
905+
* report is 100kb and UTF8 characters can be up to four bytes. 5,000
906+
* characters are left over to include other information.
904907
*/
905908
const maxErrorSize = 20_000;
906909

0 commit comments

Comments
 (0)