@@ -232,6 +232,7 @@ function Check-OutputDirectory {
232
232
exit 1
233
233
}
234
234
235
+ Write-Host " Output path: $output_path "
235
236
# return valid cli directory
236
237
return $output_path
237
238
}
@@ -406,6 +407,7 @@ $optional_params_cli = @(
406
407
" review_comments" ,
407
408
" static_analysis" ,
408
409
" static_analysis_tool" ,
410
+ " linters_feedback" ,
409
411
" review_scope" ,
410
412
" exclude_branches" ,
411
413
" exclude_files" ,
@@ -441,6 +443,7 @@ $optional_params_server = @(
441
443
" review_comments" ,
442
444
" static_analysis" ,
443
445
" static_analysis_tool" ,
446
+ " linters_feedback" ,
444
447
" review_scope" ,
445
448
" exclude_branches" ,
446
449
" exclude_files" ,
@@ -460,6 +463,7 @@ $optional_params_server = @(
460
463
" custom_rules.region_name"
461
464
" custom_rules.bucket_name"
462
465
" custom_rules.aes_key"
466
+ " output_path"
463
467
)
464
468
465
469
$bee_params = @ (
@@ -528,7 +532,7 @@ foreach ($param in $required_params) {
528
532
foreach ($param in $optional_params ) {
529
533
if ($param -eq " dependency_check.snyk_auth_token" -and $props [" dependency_check" ] -eq " True" ) {
530
534
Ask- For- Param $param $false
531
- } elseif ($param -ne " dependency_check.snyk_auth_token" -and $param -ne " env" -and $param -ne " cli_path" -and $param -ne " output_path" -and $param -ne " static_analysis_tool" -and $param -ne " git.domain" -and $param -ne " review_scope" -and $param -ne " exclude_branches" -and $param -ne " exclude_files" -and $param -ne " exclude_draft_pr" -and $param -ne " cr_event_type" -and $param -ne " posting_to_pr" -and $param -ne " custom_rules.configured_ws_ids" -and $param -ne " custom_rules.aws_access_key_id" -and $param -ne " custom_rules.aws_secret_access_key" -and $param -ne " custom_rules.region_name" -and $param -ne " custom_rules.bucket_name" -and $param -ne " custom_rules.aes_key" ) {
535
+ } elseif ($param -ne " dependency_check.snyk_auth_token" -and $param -ne " env" -and $param -ne " cli_path" -and $param -ne " output_path" -and $param -ne " static_analysis_tool" -and $param -ne " linters_feedback " -and $param -ne " git.domain" -and $param -ne " review_scope" -and $param -ne " exclude_branches" -and $param -ne " exclude_files" -and $param -ne " exclude_draft_pr" -and $param -ne " cr_event_type" -and $param -ne " posting_to_pr" -and $param -ne " custom_rules.configured_ws_ids" -and $param -ne " custom_rules.aws_access_key_id" -and $param -ne " custom_rules.aws_secret_access_key" -and $param -ne " custom_rules.region_name" -and $param -ne " custom_rules.bucket_name" -and $param -ne " custom_rules.aes_key" -and $param -ne " code_context_config.partial_timeout " -and $param -ne " code_context_config.max_depth " -and $param -ne " code_context_config.kill_timeout_sec " ) {
532
536
Ask- For- Param $param $false
533
537
}
534
538
}
@@ -554,6 +558,9 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
554
558
$docker_cmd += " --static_analysis.fb_infer.enabled=$validated_boolean "
555
559
} elseif ($param -eq " static_analysis_tool" ) {
556
560
$docker_cmd += " --$param =$ ( $props [$param ]) "
561
+ } elseif ($param -eq " linters_feedback" ) {
562
+ $validated_boolean = Validate- Boolean $props [$param ]
563
+ $docker_cmd += " --$param =$validated_boolean "
557
564
} elseif ($param -eq " review_scope" ) {
558
565
$scopes = $ ($props [$param ]) -replace ' ,\s*' , ' ,'
559
566
$docker_cmd += " --$param ='[$scopes ]'"
0 commit comments