Skip to content

corrected spell mistakes and updated placeholder (AST-0000) #1230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 19, 2025
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 media/riskManagement.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ svg {
vertical-align: top;
}

.ditales {
.details {
cursor: not-allowed;
font-size: 13px;
white-space: nowrap;
Expand Down
6 changes: 3 additions & 3 deletions src/commands/webViewCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class WebViewCommand {
this.logs,
type
);
// Need to check if the detailsPanel is positioned in the rigth place
// Need to check if the detailsPanel is positioned in the right place
if (
this.detailsPanel?.viewColumn === 1 ||
!this.detailsPanel?.viewColumn
Expand Down Expand Up @@ -115,7 +115,7 @@ export class WebViewCommand {

// Start to load the bfl, gets called everytime a new details webview is opened in a SAST result
//result.sastNodes.length>0 && getResultsBfl(logs,context,result,detailsPanel);
// Comunication between webview and extension
// Communication between webview and extension
await this.handleMessages(result, detailsDetachedView);
}
);
Expand Down Expand Up @@ -147,7 +147,7 @@ export class WebViewCommand {
type,
masked
);
// Need to check if the detailsPanel is positioned in the rigth place
// Need to check if the detailsPanel is positioned in the right place
if (
this.gptPanel?.viewColumn === 1 ||
this.gptPanel?.viewColumn === 2 ||
Expand Down
4 changes: 2 additions & 2 deletions src/cx/cxPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export interface CxPlatform {
triageShow(projectId: string, similarityId: string, scanType: string);

/**
* Update the information about a results by aplying triage (used on the changes tab).
* Update the information about a results by applying triage (used on the changes tab).
* @param projectId The project ID to update information.
* @param similarityId The result's similarity ID to update information.
* @param scanType The result's scan type (sca,sast,kics) to update information.
Expand Down Expand Up @@ -188,7 +188,7 @@ export interface CxPlatform {
* @param kicsFile Path to the KICS realtime file where the fix needs to be applied.
* @param engine The container engine name (example : docker,podman, etc...).
* @param similarityIds The results similarity ID(s) to be fixed (optional, since if none is provided all the available fixes will be applied).
* @return A promise that when resolved returns the doccker process reference as well as the cli output for the remediation command.
* @return A promise that when resolved returns the docker process reference as well as the cli output for the remediation command.
*/
kicsRemediation(
resultsFile: string,
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export async function activate(context: vscode.ExtensionContext) {
scaResultsProvider,
logs
);
// Register refresh sca and results Tree Commmand
// Register refresh sca and results Tree Command
treeCommand.registerRefreshCommands();
// Register clear sca and results tree Command
treeCommand.registerClearCommands();
Expand All @@ -284,7 +284,7 @@ export async function activate(context: vscode.ExtensionContext) {
pickerCommand.registerPickerCommands();
// Visual feedback on wrapper errors
commonCommand.registerErrors();
// Registe Kics remediation command
// Register Kics remediation command
kicsScanCommand.registerKicsRemediation();
// Refresh sca tree with start scan message
scaResultsProvider.refreshData(constants.scaStartScan);
Expand Down
4 changes: 2 additions & 2 deletions src/kics/kicsRealtimeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export class KicsProvider {
let additionalParams = vscode.workspace
.getConfiguration("CheckmarxKICS")
.get("Additional Parameters") as string;
additionalParams = additionalParams.replace(/("[^"]*")|\s+/g, (match, quoted) => quoted ? quoted : ",");
additionalParams = additionalParams.replace(/("[^"]*")|\s+/g, (match, quoted) => quoted ? quoted : ",");
if (file) {
results = await cx.getResultsRealtime(file, additionalParams);
} else {
Expand Down Expand Up @@ -367,7 +367,7 @@ export class KicsProvider {
"${kicsResult.description}"
Value:
${kicsResult.query_name}
Recomended fix:
Recommended fix:
${file.expected_value}
`,
kicsResult: kicsResult,
Expand Down
4 changes: 2 additions & 2 deletions src/realtimeScanners/scanners/CxCodeActionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export class CxCodeActionProvider implements vscode.CodeActionProvider {
const actionList = [fixAction, explainAction, ignoreAction];

if (this.isEligibleForIgnoreAll(item)) {
const ignoreAllVulnerbility = "Ignore all of this type";
const ignoreAllAction = new vscode.CodeAction(ignoreAllVulnerbility, vscode.CodeActionKind.QuickFix);
const ignoreAllVulnerability = "Ignore all of this type";
const ignoreAllAction = new vscode.CodeAction(ignoreAllVulnerability, vscode.CodeActionKind.QuickFix);
ignoreAllAction.command = {
command: commands.ignoreAll,
title: ignoreAllAction.title,
Expand Down
2 changes: 1 addition & 1 deletion src/test/10.localBranch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe.skip("Using a local branch if Git exists", () => {
let project = await treeScans?.findItem(PROJECT_KEY_TREE + projectName);
let branch = await treeScans?.findItem(BRANCH_KEY_TREE + constants.localBranch);
expect(project, `Should select ${projectName}`).is.not.undefined;
expect(branch, `Sould display ${constants.localBranch}`).is.not.undefined;
expect(branch, `Should display ${constants.localBranch}`).is.not.undefined;
}, 3));


Expand Down
4 changes: 2 additions & 2 deletions src/utils/common/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const messages = {
scanNoFilesFound:
"No files found in workspace. Please open a workspace or folder.",
scanFilesMatch: "Files match workspace",
scanFilesNotMatch: "Files in workspace dont match files in results",
scanFilesNotMatch: "Files in workspace don't match files in results",
scanProjectsNotMatch:
"Project in workspace doesn't match the selected Checkmarx project. Do you want to scan anyway?",
scanBranchMatch: "Branch match the view branch. Initiating scan...",
Expand Down Expand Up @@ -72,7 +72,7 @@ export const messages = {
loadingScan: "Loading scan",
loadingResults: "Loading results",
triageNotAvailableSca: "Triage not available for SCA.",
triageSubmitedSuccess: "Feedback submited successfully! Results refreshed.",
triageSubmitedSuccess: "Feedback submitted successfully! Results refreshed.",
triageError: (error) => `Triage ${error}`,
triageNoChange: "Make a change before submiting",
triageUpdateState: (state) => `Updating state to ${state}`,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/interface/details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Details {
const comment =
this.result.type !== constants.sca
? `<div class="comment-container">
<textarea placeholder="Comment (optional)" cols="41" rows="3" class="comments" type="text" id="comment_box"></textarea>
<textarea placeholder="Note (Optional or required based on tenant configuration)" cols="41" rows="3" class="comments" type="text" id="comment_box"></textarea>
</div>`
: ``;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/pickers/pickers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async function createPicker(
quickPick.show();
}

// label, funcao p ir buscar os projects/branchse, etc override, onDidChange , funcao de "pre pick" p retornar um bool
// label, funcao p ir buscar os projects/branches, etc override, onDidChange , funcao de "pre pick" p retornar um bool
export async function projectPicker(
context: vscode.ExtensionContext,
logs: Logs
Expand Down
2 changes: 1 addition & 1 deletion src/views/resultsView/astDetailsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class AstDetailsDetached implements vscode.WebviewViewProvider {
startColumn: number,
fieldLength: number
) {
// Needed because vscode.workspace.workspaceFolders migth be undefined if no workspace is opened
// Needed because vscode.workspace.workspaceFolders might be undefined if no workspace is opened
try {
let fileOpened = false;
const folder = vscode.workspace.workspaceFolders?.[0];
Expand Down
2 changes: 1 addition & 1 deletion src/views/resultsView/astResultsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class AstResultsProvider extends ResultsProvider {
// get scan from state
this.scan = getFromState(this.context, constants.scanIdKey);
const fromTriage = getFromState(this.context, constants.triageUpdate)?.id;
// Case we come from triage we want to use the loaded results wich were modified in triage
// Case we come from triage we want to use the loaded results which were modified in triage
if (fromTriage === undefined || !fromTriage) {
// in case we scanId, it is needed to load them from the json file
if (this.scan?.id) {
Expand Down
10 changes: 5 additions & 5 deletions src/views/riskManagementView/riskManagementView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class riskManagementView implements vscode.WebviewViewProvider {
<body>
<div id="loading" class="loading">
<div class="spinner-border" role="status">
<span class="visually-hidden">ASPM Results Loadind...</span>
<span class="visually-hidden">ASPM Results Loading...</span>
</div>
</div>
<div id="riskManagementContainer">
Expand All @@ -267,7 +267,7 @@ export class riskManagementView implements vscode.WebviewViewProvider {
? `<div class="no-results-message">
ASPM does not hold result data for this project
</div>`
: `<div class="ditales"
: `<div class="details"
data-bs-toggle="tooltip" data-bs-placement="auto"
title="You can show ASPM data for a different project by changing the selection in the Checkmarx One Results section above.">

Expand All @@ -290,9 +290,9 @@ export class riskManagementView implements vscode.WebviewViewProvider {
</button>
<div class="sort-menu" id="sortMenu">
<div class="sort-option sort-title">SORT BY</div>
<div class="sort-option" data-sort="score">Aplication Risk Score</div>
<div class="sort-option" data-sort="az">Aplication Name A-Z</div>
<div class="sort-option" data-sort="za">Aplication Name Z-A</div>
<div class="sort-option" data-sort="score">Application Risk Score</div>
<div class="sort-option" data-sort="az">Application Name A-Z</div>
<div class="sort-option" data-sort="za">Application Name Z-A</div>
</div>
</div>
<hr class="separator-vertical" />
Expand Down
Loading