@@ -232,6 +232,7 @@ function Check-OutputDirectory {
232232 exit 1
233233 }
234234
235+ Write-Host " Output path: $output_path "
235236 # return valid cli directory
236237 return $output_path
237238}
@@ -406,6 +407,7 @@ $optional_params_cli = @(
406407 " review_comments" ,
407408 " static_analysis" ,
408409 " static_analysis_tool" ,
410+ " linters_feedback" ,
409411 " review_scope" ,
410412 " exclude_branches" ,
411413 " exclude_files" ,
@@ -441,6 +443,7 @@ $optional_params_server = @(
441443 " review_comments" ,
442444 " static_analysis" ,
443445 " static_analysis_tool" ,
446+ " linters_feedback"
444447 " review_scope" ,
445448 " exclude_branches" ,
446449 " exclude_files" ,
@@ -460,6 +463,7 @@ $optional_params_server = @(
460463 " custom_rules.region_name"
461464 " custom_rules.bucket_name"
462465 " custom_rules.aes_key"
466+ " output_path"
463467)
464468
465469$bee_params = @ (
@@ -528,7 +532,7 @@ foreach ($param in $required_params) {
528532foreach ($param in $optional_params ) {
529533 if ($param -eq " dependency_check.snyk_auth_token" -and $props [" dependency_check" ] -eq " True" ) {
530534 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 " ) {
532536 Ask- For- Param $param $false
533537 }
534538}
@@ -554,6 +558,9 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
554558 $docker_cmd += " --static_analysis.fb_infer.enabled=$validated_boolean "
555559 } elseif ($param -eq " static_analysis_tool" ) {
556560 $docker_cmd += " --$param =$ ( $props [$param ]) "
561+ } elseif ($param -eq " linters_feedback" ) {
562+ $validated_boolean = Validate- Boolean $props [$param ]
563+ $docker_cmd += " --$param =$validated_boolean "
557564 } elseif ($param -eq " review_scope" ) {
558565 $scopes = $ ($props [$param ]) -replace ' ,\s*' , ' ,'
559566 $docker_cmd += " --$param ='[$scopes ]'"
0 commit comments