Skip to content

Commit 0d0f53e

Browse files
committed
Fixed numerous typos in files.
Fixed files may also have extraneous whitespace removed.
1 parent a3c1977 commit 0d0f53e

28 files changed

Lines changed: 276 additions & 276 deletions

src/code/CompressPSResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public sealed class CompressPSResource : PSCmdlet
5959

6060
protected override void BeginProcessing()
6161
{
62-
// Create a respository store (the PSResourceRepository.xml file) if it does not already exist
62+
// Create a repository store (the PSResourceRepository.xml file) if it does not already exist
6363
// This is to create a better experience for those who have just installed v3 and want to get up and running quickly
6464
RepositorySettings.CheckRepositoryStore();
6565

src/code/ContainerRegistryResponseUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public ContainerRegistryResponseUtil(PSRepositoryInfo repository) : base(reposit
2626

2727
#endregion
2828

29-
#region Overriden Methods
29+
#region Overridden Methods
3030

3131
public override IEnumerable<PSResourceResult> ConvertToPSResourceResult(FindResults responseResults, bool isResourceRequestedWithWildcard = false)
3232
{

src/code/ContainerRegistryServerAPICalls.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public ContainerRegistryServerAPICalls(PSRepositoryInfo repository, PSCmdlet cmd
7575

7676
#endregion
7777

78-
#region Overriden Methods
78+
#region Overridden Methods
7979

8080
/// <summary>
8181
/// Find method which allows for searching for all packages from a repository and returns latest version for each.
@@ -126,7 +126,7 @@ public override FindResults FindCommandOrDscResource(string[] tags, bool include
126126
/// Find method which allows for searching for single name and returns latest version.
127127
/// Name: no wildcard support
128128
/// Examples: Search "PowerShellGet"
129-
/// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease dependening on user preference)
129+
/// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease depending on user preference)
130130
/// </summary>
131131
public override FindResults FindName(string packageName, bool includePrerelease, ResourceType type, out ErrorRecord errRecord)
132132
{
@@ -451,12 +451,12 @@ internal string GetContainerRegistryAccessToken(bool needCatalogAccess, out Erro
451451
/// <summary>
452452
/// Checks if container registry repository is unauthenticated.
453453
/// </summary>
454-
internal bool IsContainerRegistryUnauthenticated(string containerRegistyUrl, bool needCatalogAccess, out ErrorRecord errRecord, out string anonymousAccessToken)
454+
internal bool IsContainerRegistryUnauthenticated(string containerRegistryUrl, bool needCatalogAccess, out ErrorRecord errRecord, out string anonymousAccessToken)
455455
{
456456
_cmdletPassedIn.WriteDebug("In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()");
457457
errRecord = null;
458458
anonymousAccessToken = string.Empty;
459-
string endpoint = $"{containerRegistyUrl}/v2/";
459+
string endpoint = $"{containerRegistryUrl}/v2/";
460460
HttpResponseMessage response;
461461
try
462462
{
@@ -497,7 +497,7 @@ internal bool IsContainerRegistryUnauthenticated(string containerRegistyUrl, boo
497497

498498
_cmdletPassedIn.WriteDebug($"Getting anonymous access token from the realm: {url}");
499499

500-
// we dont check the errorrecord here because we want to return false if we get a 401 and not throw an error
500+
// we don't check the error record here because we want to return false if we get a 401 and not throw an error
501501
_cmdletPassedIn.WriteDebug($"Getting anonymous access token from the realm: {url}");
502502
ErrorRecord errRecordTemp = null;
503503

@@ -644,7 +644,7 @@ internal JObject GetContainerRegistryRepositoryManifest(string packageName, stri
644644
}
645645

646646
/// <summary>
647-
/// Get the blob for the package (ie repository in container registry terms) from the repositroy (ie registry in container registry terms)
647+
/// Get the blob for the package (ie repository in container registry terms) from the repository (ie registry in container registry terms)
648648
/// Used when installing the package
649649
/// </summary>
650650
internal async Task<HttpContent> GetContainerRegistryBlobAsync(string packageName, string digest, string containerRegistryAccessToken)
@@ -916,7 +916,7 @@ internal async Task<HttpResponseMessage> UploadManifest(string packageName, stri
916916
}
917917
catch (HttpRequestException e)
918918
{
919-
throw new HttpRequestException("Error occured while trying to create manifest: " + e.Message);
919+
throw new HttpRequestException("Error occurred while trying to create manifest: " + e.Message);
920920
}
921921
}
922922

@@ -931,7 +931,7 @@ internal async Task<HttpContent> GetHttpContentResponseJObject(string url, Colle
931931
}
932932
catch (HttpRequestException e)
933933
{
934-
throw new HttpRequestException("Error occured while trying to retrieve response: " + e.Message);
934+
throw new HttpRequestException("Error occurred while trying to retrieve response: " + e.Message);
935935
}
936936
}
937937

@@ -1074,7 +1074,7 @@ internal async Task<HttpResponseHeaders> GetHttpResponseHeader(string url, HttpM
10741074
}
10751075
catch (HttpRequestException e)
10761076
{
1077-
throw new HttpRequestException("Error occured while trying to retrieve response header: " + e.Message);
1077+
throw new HttpRequestException("Error occurred while trying to retrieve response header: " + e.Message);
10781078
}
10791079
}
10801080

@@ -1117,7 +1117,7 @@ private async Task<HttpContent> SendContentRequestAsync(HttpRequestMessage messa
11171117
}
11181118
catch (Exception e)
11191119
{
1120-
throw new SendRequestException($"Error occured while sending request to Container Registry server for content with: {e.GetType()} '{e.Message}'", e);
1120+
throw new SendRequestException($"Error occurred while sending request to Container Registry server for content with: {e.GetType()} '{e.Message}'", e);
11211121
}
11221122
}
11231123

@@ -1133,7 +1133,7 @@ private async Task<JObject> SendRequestAsync(HttpRequestMessage message)
11331133
}
11341134
catch (Exception e)
11351135
{
1136-
throw new SendRequestException($"Error occured while sending request to Container Registry server with: {e.GetType()} '{e.Message}'", e);
1136+
throw new SendRequestException($"Error occurred while sending request to Container Registry server with: {e.GetType()} '{e.Message}'", e);
11371137
}
11381138

11391139
switch (response.StatusCode)
@@ -1233,7 +1233,7 @@ private async Task<HttpResponseHeaders> SendRequestHeaderAsync(HttpRequestMessag
12331233
}
12341234
catch (HttpRequestException e)
12351235
{
1236-
throw new HttpRequestException("Error occured while trying to retrieve response: " + e.Message);
1236+
throw new HttpRequestException("Error occurred while trying to retrieve response: " + e.Message);
12371237
}
12381238
}
12391239

@@ -1264,7 +1264,7 @@ private async Task<HttpResponseMessage> PutRequestAsync(string url, string fileP
12641264
}
12651265
catch (Exception e)
12661266
{
1267-
throw new SendRequestException($"Error occured while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
1267+
throw new SendRequestException($"Error occurred while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
12681268
}
12691269
}
12701270

@@ -1552,7 +1552,7 @@ private bool TryCreateAndUploadManifest(string fullNupkgFile,
15521552
catch (Exception e)
15531553
{
15541554
errRecord = new ErrorRecord(
1555-
new UploadBlobException($"Error occured while uploading package manifest to ContainerRegistry: {e.GetType()} '{e.Message}'", e),
1555+
new UploadBlobException($"Error occurred while uploading package manifest to ContainerRegistry: {e.GetType()} '{e.Message}'", e),
15561556
"PackageManifestUploadError",
15571557
ErrorCategory.InvalidResult,
15581558
_cmdletPassedIn);
@@ -1741,7 +1741,7 @@ internal async Task<string> GetStartUploadBlobLocation(string packageName, strin
17411741
}
17421742
catch (Exception e)
17431743
{
1744-
throw new UploadBlobException($"Error occured while starting to upload the blob location used for publishing to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
1744+
throw new UploadBlobException($"Error occurred while starting to upload the blob location used for publishing to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
17451745
}
17461746
}
17471747

@@ -1759,7 +1759,7 @@ internal async Task<HttpResponseMessage> EndUploadBlob(string location, string f
17591759
}
17601760
catch (Exception e)
17611761
{
1762-
throw new UploadBlobException($"Error occured while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
1762+
throw new UploadBlobException($"Error occurred while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
17631763
}
17641764
}
17651765

src/code/CredentialProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ private static string VSCredentialProviderFile(string visualStudioPath, string c
113113

114114
internal static PSCredential GetCredentialsFromProvider(Uri uri, PSCmdlet cmdletPassedIn)
115115
{
116-
cmdletPassedIn.WriteVerbose("Enterting CredentialProvider::GetCredentialsFromProvider");
116+
cmdletPassedIn.WriteVerbose("Entering CredentialProvider::GetCredentialsFromProvider");
117117
string credProviderPath = string.Empty;
118-
118+
119119
// Find credential provider
120120
// Option 1. Use env var 'NUGET_PLUGIN_PATHS' to find credential provider.
121121
// See: https://docs.microsoft.com/en-us/nuget/reference/extensibility/nuget-cross-platform-plugins#plugin-installation-and-discovery
@@ -161,7 +161,7 @@ internal static PSCredential GetCredentialsFromProvider(Uri uri, PSCmdlet cmdlet
161161
{
162162
FileInfo fileInfo = new FileInfo(credProviderPath);
163163
if (!Utils.TryGetCaseInsensitiveFilePath(fileInfo.Directory.FullName, _credProviderDll, out credProviderPath))
164-
{
164+
{
165165
cmdletPassedIn.WriteError(new ErrorRecord(
166166
new FileNotFoundException($"Path found '{credProviderPath}' is not a valid Azure Artifact Credential Provider executable. See https://github.com/NuGet/Home/wiki/NuGet-cross-plat-authentication-plugin#plugin-installation-and-discovery to set up the Credential Provider."),
167167
"CredentialProviderFileNotFound",

src/code/GetHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public IEnumerable<String> FilterPkgPathsByVersion(VersionRange versionRange, Li
175175
_cmdletPassedIn.WriteDebug($"Package version parsed as NuGet version: '{pkgNugetVersion}'");
176176

177177
// For Uninstall-PSResource Prerelease parameter equates to selecting prerelease versions only to uninstall.
178-
// For other cmdlets (Find-PSResource, Install-PSResource) Prerelease parmater equates to selecting stable and prerelease versions.
179-
// We will not just select prerelase versions. For Get-InstalledPSResource, there is no Prerelease parameter.
178+
// For other cmdlets (Find-PSResource, Install-PSResource) Prerelease parameter equates to selecting stable and prerelease versions.
179+
// We will not just select prerelease versions. For Get-InstalledPSResource, there is no Prerelease parameter.
180180
if (versionRange.Satisfies(pkgNugetVersion))
181181
{
182182
if (!selectPrereleaseOnly || pkgNugetVersion.IsPrerelease)

src/code/GetInstalledPSResource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected override void BeginProcessing()
6666
// an exact version will be formatted into a version range.
6767
if (Version == null)
6868
{
69-
WriteDebug("Searcing for all versions");
69+
WriteDebug("Searching for all versions");
7070
_versionRange = VersionRange.All;
7171
}
7272
else if (!Utils.TryParseVersionOrVersionRange(Version, out _versionRange))
@@ -153,7 +153,7 @@ protected override void ProcessRecord()
153153
List<string> pkgsNotFound = new List<string>();
154154
foreach (string name in namesToSearch)
155155
{
156-
if (!pkgsFound.Contains(name, StringComparer.OrdinalIgnoreCase))
156+
if (!pkgsFound.Contains(name, StringComparer.OrdinalIgnoreCase))
157157
{
158158
if (name.Contains('*'))
159159
{

src/code/InstallHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ private bool TryDeleteDirectory(
383383
}
384384

385385
/// <summary>
386-
/// Moves file from the temp install path to desination path for install.
386+
/// Moves file from the temp install path to destination path for install.
387387
/// </summary>
388388
private void MoveFilesIntoInstallPath(
389389
PSResourceInfo pkgInfo,
@@ -1204,7 +1204,7 @@ private bool TryExtractToDirectory(string zipPath, string extractPath, out Error
12041204
catch (Exception e)
12051205
{
12061206
error = new ErrorRecord(
1207-
new Exception($"Error occured while extracting .nupkg: '{e.Message}'"),
1207+
new Exception($"Error occurred while extracting .nupkg: '{e.Message}'"),
12081208
"ErrorExtractingNupkg",
12091209
ErrorCategory.OperationStopped,
12101210
_cmdletPassedIn);
@@ -1313,7 +1313,7 @@ private bool CallAcceptLicense(PSResourceInfo p, string moduleManifest, string t
13131313
}
13141314
}
13151315

1316-
// Licesnse agreement processing
1316+
// License agreement processing
13171317
if (requireLicenseAcceptance)
13181318
{
13191319
// If module requires license acceptance and -AcceptLicense is not passed in, display prompt

src/code/InstallPSResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ protected override void ProcessRecord()
352352
break;
353353

354354
case ResourceFileType.UnknownFile:
355-
throw new PSInvalidOperationException("Unkown file type. Required resource file must be either a json or psd1 data file.");
355+
throw new PSInvalidOperationException("Unknown file type. Required resource file must be either a json or psd1 data file.");
356356
}
357357
}
358358
catch (Exception)

src/code/LocalResponseUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public LocalResponseUtil(PSRepositoryInfo repository) : base(repository)
2626

2727
#endregion
2828

29-
#region Overriden Methods
29+
#region Overridden Methods
3030
public override IEnumerable<PSResourceResult> ConvertToPSResourceResult(FindResults responseResults, bool isResourceRequestedWithWildcard = false)
3131
{
3232
foreach (Hashtable response in responseResults.HashtableResponse)

0 commit comments

Comments
 (0)