From dd4fe198ebc2bdfc464698f5d1d0d4b07d341dd7 Mon Sep 17 00:00:00 2001 From: Zach Leventer Date: Fri, 24 Apr 2026 11:30:39 -0400 Subject: [PATCH] fix: typos and comment errors across messages and source files - envVars.md: "configration" -> "configuration" (x2, sfdxDisableTelemetry + sfDisableTelemetry) - envVars.md: "CLIcommands" -> "CLI commands" (sfCodeCoverageRequirement) - sfError.ts: "compatability" -> "compatibility" in backwards-compat comment - sfError.ts: "he underlying error" -> "the underlying error" in JSDoc - scratchOrgInfoApi.ts: "hun org" -> "hub org" in JSDoc param - org.ts: "usersname" -> "username" in inline comment - org.ts: "sanbox" -> "sandbox" in JSDoc param - authInfo.ts: "URls" -> "URLs" in inline comment - user.ts: "Concatinating" -> "Concatenating" in comment - myDomainResolver.ts: "dns loookup" -> "dns lookup" in JSDoc - testSetup.ts: "setTimout" -> "setTimeout" in JSDoc --- messages/envVars.md | 6 +++--- src/org/authInfo.ts | 2 +- src/org/org.ts | 4 ++-- src/org/scratchOrgInfoApi.ts | 2 +- src/org/user.ts | 2 +- src/sfError.ts | 4 ++-- src/status/myDomainResolver.ts | 2 +- src/testSetup.ts | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/messages/envVars.md b/messages/envVars.md index 7e076ec1c7..dd782cbbef 100644 --- a/messages/envVars.md +++ b/messages/envVars.md @@ -72,7 +72,7 @@ Number of source-tracked file updates to batch after a deploy or retrieve. The d # sfdxDisableTelemetry -Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configration variable. +Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configuration variable. # sfdxDnsTimeout @@ -192,7 +192,7 @@ URL that overrides the aud (audience) field used for JWT authentication so that # sfCodeCoverageRequirement -Code coverage percentages that are displayed in green when you run the Apex test CLIcommands with the --code-coverage flag. +Code coverage percentages that are displayed in green when you run the Apex test CLI commands with the --code-coverage flag. # sfContentType @@ -212,7 +212,7 @@ Set to true to disable polling of your org’s SourceMember object when you run # sfDisableTelemetry -Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configration variable. +Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configuration variable. # sfDnsTimeout diff --git a/src/org/authInfo.ts b/src/org/authInfo.ts index 8cc433ea44..c8c82f3951 100644 --- a/src/org/authInfo.ts +++ b/src/org/authInfo.ts @@ -1052,7 +1052,7 @@ export class AuthInfo extends AsyncOptionalCreatable { const audienceUrl = await url.getJwtAudienceUrl(createdOrgInstance); let authFieldsBuilder: JsonMap | undefined; const authErrors = []; - // given that we can no longer depend on instance names or URls to determine audience, let's try them all + // given that we can no longer depend on instance names or URLs to determine audience, let's try them all const loginAndAudienceUrls = getLoginAudienceCombos(audienceUrl, loginUrl); for (const [login, audience] of loginAndAudienceUrls) { try { diff --git a/src/org/org.ts b/src/org/org.ts index ecd03f1ab2..5d235c752d 100644 --- a/src/org/org.ts +++ b/src/org/org.ts @@ -675,7 +675,7 @@ export class Org extends AsyncOptionalCreatable { await this.removeSandboxConfig(); await this.removeUsers(throwWhenRemoveFails); await this.removeUsersConfig(); - // An attempt to remove this org's auth file occurs in this.removeUsersConfig. That's because this org's usersname is also + // An attempt to remove this org's auth file occurs in this.removeUsersConfig. That's because this org's username is also // included in the OrgUser config file. // // So, just in case no users are added to this org we will try the remove again. @@ -1305,7 +1305,7 @@ export class Org extends AsyncOptionalCreatable { /** * Gets the sandboxProcessObject and then polls for it to complete. * - * @param sandboxProcessName sanbox process name + * @param sandboxProcessName sandbox process name * @param options { wait?: Duration; interval?: Duration } * @returns {SandboxProcessObject} The SandboxProcessObject for the sandbox */ diff --git a/src/org/scratchOrgInfoApi.ts b/src/org/scratchOrgInfoApi.ts index eafdf8985a..b73fdb1700 100644 --- a/src/org/scratchOrgInfoApi.ts +++ b/src/org/scratchOrgInfoApi.ts @@ -42,7 +42,7 @@ const errorCodes = Messages.loadMessages('@salesforce/core', 'scratchOrgErrorCod * Returns the url to be used to authorize into the new scratch org * * @param scratchOrgInfoComplete The completed ScratchOrgInfo - * @param hubOrgLoginUrl the hun org login url + * @param hubOrgLoginUrl the hub org login url * @param signupTargetLoginUrl the login url * @returns {string} */ diff --git a/src/org/user.ts b/src/org/user.ts index 570c7f6f6f..ecf274b23b 100644 --- a/src/org/user.ts +++ b/src/org/user.ts @@ -244,7 +244,7 @@ export class User extends AsyncCreatable { } }); - // Concatinating remaining length randomly with all lower characters + // Concatenating remaining length randomly with all lower characters password = password.concat( Array(Math.max(passwordCondition.length - password.length, 0)) .fill('0') diff --git a/src/sfError.ts b/src/sfError.ts index 6c9728ca36..acf0931b1c 100644 --- a/src/sfError.ts +++ b/src/sfError.ts @@ -66,7 +66,7 @@ export class SfError extend public data?: T; /** - * Some errors support `error.code` instead of `error.name`. This keeps backwards compatability. + * Some errors support `error.code` instead of `error.name`. This keeps backwards compatibility. */ #code?: string; @@ -76,7 +76,7 @@ export class SfError extend * @param message The error message. * @param name The error name. Defaults to 'SfError'. * @param actions The action message(s). - * @param exitCodeOrCause The exit code which will be used by SfdxCommand or he underlying error that caused this error to be raised. + * @param exitCodeOrCause The exit code which will be used by SfdxCommand or the underlying error that caused this error to be raised. * @param cause The underlying error that caused this error to be raised. */ public constructor( diff --git a/src/status/myDomainResolver.ts b/src/status/myDomainResolver.ts index 7850916d8f..de4b743924 100644 --- a/src/status/myDomainResolver.ts +++ b/src/status/myDomainResolver.ts @@ -71,7 +71,7 @@ export class MyDomainResolver extends AsyncOptionalCreatable { const env = new Env(); diff --git a/src/testSetup.ts b/src/testSetup.ts index d69608b3f8..787fd82339 100644 --- a/src/testSetup.ts +++ b/src/testSetup.ts @@ -869,7 +869,7 @@ export class StreamingMockCometClient extends CometClient { public setHeader(name: string, value: string): void {} /** - * Fake subscription that completed after the setTimout event phase. + * Fake subscription that completed after the setTimeout event phase. * * @param channel The streaming channel. * @param callback The function to invoke after the subscription completes.