Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/tool/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func createCommandParameters(language string, configurationFile *os.File, filesT
//"-l", language,
"--timeout", "10",
"--timeout-threshold", "5",
"--max-target-bytes", "0",
"--max-target-bytes", "150000",
"--taint-intrafile",
//"--error-recovery",
"--max-memory", "5000",
Expand Down
2 changes: 1 addition & 1 deletion internal/tool/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestCreateCommandParameters(t *testing.T) {
"--config", configurationFile.Name(),
"--timeout", "10",
"--timeout-threshold", "5",
"--max-target-bytes", "0",
"--max-target-bytes", "150000",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating the test expectation to "150000" without updating the actual implementation in internal/tool/command.go (which still uses "0" on line 86) causes TestCreateCommandParameters to fail. The implementation in internal/tool/command.go needs to be updated to "150000" to match this test and complete the fix.

// "-error_recovery",
// "-max_memory", "2560",
// "-fast",
Expand Down