Skip to content

Commit b4b15d1

Browse files
change help text and warning message alignment
1 parent 818ad69 commit b4b15d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/commands/result.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func resultShowSubCommand(
311311
commonParams.ResultPolicyDefaultTimeout,
312312
"Cancel the policy evaluation and fail after the timeout in minutes",
313313
)
314-
resultShowCmd.PersistentFlags().Bool(commonParams.IgnorePolicyFlag, false, "Skip policy evaluation, allowing the build to proceed despite policy violations. Requires override-policy-management permission.")
314+
resultShowCmd.PersistentFlags().Bool(commonParams.IgnorePolicyFlag, false, "Skip policy evaluation. Requires override-policy-management permission.")
315315
resultShowCmd.PersistentFlags().Bool(commonParams.SastRedundancyFlag, false,
316316
"Populate SAST results 'data.redundancy' with values '"+fixLabel+"' (to fix) or '"+redundantLabel+"' (no need to fix)")
317317
resultShowCmd.PersistentFlags().Bool(commonParams.ScaHideDevAndTestDepFlag, false, scaHideDevAndTestDepFlagDescription)
@@ -2888,5 +2888,5 @@ type ScannerResponse struct {
28882888
}
28892889

28902890
func printWarningIfIgnorePolicyOmiited() {
2891-
fmt.Printf(" Warning: The --ignore-policy flag was not implemented because you don’t have the required permission. Only users with 'override-policy-management' permission can use this flag. \n")
2891+
fmt.Printf("\n Warning: The --ignore-policy flag was not implemented because you don’t have the required permission.\n Only users with 'override-policy-management' permission can use this flag. \n\n")
28922892
}

internal/commands/scan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ func scanCreateSubCommand(
846846
commonParams.ScanPolicyDefaultTimeout,
847847
"Cancel the policy evaluation and fail after the timeout in minutes",
848848
)
849-
createScanCmd.PersistentFlags().Bool(commonParams.IgnorePolicyFlag, false, "Skip policy evaluation, allowing the build to proceed despite policy violations. Requires override-policy-management permission.")
849+
createScanCmd.PersistentFlags().Bool(commonParams.IgnorePolicyFlag, false, "Skip policy evaluation. Requires override-policy-management permission.")
850850

851851
createScanCmd.PersistentFlags().String(commonParams.ApplicationName, "", "Name of the application to assign with the project")
852852
// Link the environment variables to the CLI argument(s).

0 commit comments

Comments
 (0)