Skip to content

Commit 8119d40

Browse files
Improve command semgrep (#66)
1 parent 593248d commit 8119d40

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/tool/command.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ func createCommandParameters(language string, configurationFile *os.File, filesT
7777
"-lang", language,
7878
"-rules", configurationFile.Name(),
7979
"-max_target_bytes", "0",
80+
"-timeout", "5",
81+
"-timeout_threshold", "3",
8082
"-error_recovery",
8183
"-max_memory", "5000",
8284
"-j", strconv.Itoa(runtime.NumCPU()),

internal/tool/command_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ func TestCreateCommandParameters(t *testing.T) {
4444
"-lang", language,
4545
"-rules", configurationFile.Name(),
4646
"-max_target_bytes", "0",
47+
"-timeout", "5",
48+
"-timeout_threshold", "3",
4749
"-error_recovery",
4850
"-max_memory", "5000",
4951
"-fast",

0 commit comments

Comments
 (0)