From da6c6ca544b58d93a67f9f79b85583c84f369ec1 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 27 Mar 2020 07:27:12 +1100 Subject: [PATCH] Cleanup spelling (#217) --- src/Microsoft.Tye.Core/ApplicationFactory.cs | 2 +- src/Microsoft.Tye.Core/ComputedBindings.cs | 2 +- src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs | 2 +- src/Microsoft.Tye.Core/ProjectReader.cs | 4 ++-- src/Microsoft.Tye.Core/StandardOptions.cs | 2 +- src/Microsoft.Tye.Core/ValidateSecretStep.cs | 2 +- src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs | 4 ++-- .../Logging/LogValuesFormatter.cs | 2 +- test/E2ETest/DockerAssert.cs | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Microsoft.Tye.Core/ApplicationFactory.cs b/src/Microsoft.Tye.Core/ApplicationFactory.cs index 4b929f5e..bd3ea468 100644 --- a/src/Microsoft.Tye.Core/ApplicationFactory.cs +++ b/src/Microsoft.Tye.Core/ApplicationFactory.cs @@ -47,7 +47,7 @@ namespace Microsoft.Tye await ProjectReader.ReadProjectDetailsAsync(output, project); // We don't apply more container defaults here because we might need - // to prompty for the registry name. + // to promptly for the registry name. project.ContainerInfo = new ContainerInfo() { UseMultiphaseDockerfile = false, diff --git a/src/Microsoft.Tye.Core/ComputedBindings.cs b/src/Microsoft.Tye.Core/ComputedBindings.cs index e955efed..28e5b720 100644 --- a/src/Microsoft.Tye.Core/ComputedBindings.cs +++ b/src/Microsoft.Tye.Core/ComputedBindings.cs @@ -41,7 +41,7 @@ namespace Microsoft.Tye public string Name { get; } public string? Value { get; } - // Used to map the secret to a key that ASP.NET Core understandes + // Used to map the secret to a key that ASP.NET Core understands public string Filename { get; } // Used for informational purposes diff --git a/src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs b/src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs index 5e395154..30ae1099 100644 --- a/src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs +++ b/src/Microsoft.Tye.Core/ConfigModel/ConfigApplication.cs @@ -12,7 +12,7 @@ namespace Microsoft.Tye.ConfigModel { // General design note re: nullability - we use [Required] to validate for non-null // so we use = default! to reflect that. Code that creates a ConfigApplication should - // validate it before deferencing the properties. + // validate it before dereferencing the properties. public class ConfigApplication { // This gets set by all of the code paths that read the application diff --git a/src/Microsoft.Tye.Core/ProjectReader.cs b/src/Microsoft.Tye.Core/ProjectReader.cs index 63cbdc21..192b975f 100644 --- a/src/Microsoft.Tye.Core/ProjectReader.cs +++ b/src/Microsoft.Tye.Core/ProjectReader.cs @@ -101,7 +101,7 @@ namespace Microsoft.Tye // Using the project as the working directory. We're making the assumption that // all of the projects want to use the same SDK version. This library is going // load a single version of the SDK's assemblies into our process, so we can't - // use supprt SDKs at once without getting really tricky. + // use support SDKs at once without getting really tricky. // // The .NET SDK-based discovery uses `dotnet --info` and returns the SDK // in use for the directory. @@ -188,7 +188,7 @@ namespace Microsoft.Tye AssemblyLoadContext.Default.Resolving -= ResolveAssembly; } - // Reading both InformationalVersion and Version is more resilant in the face of build failures. + // Reading both InformationalVersion and Version is more resilient in the face of build failures. var version = projectInstance.GetProperty("InformationalVersion")?.EvaluatedValue ?? projectInstance.GetProperty("Version").EvaluatedValue; project.Version = version; output.WriteDebugLine($"Found application version: {version}"); diff --git a/src/Microsoft.Tye.Core/StandardOptions.cs b/src/Microsoft.Tye.Core/StandardOptions.cs index b919521b..b4a0276c 100644 --- a/src/Microsoft.Tye.Core/StandardOptions.cs +++ b/src/Microsoft.Tye.Core/StandardOptions.cs @@ -19,7 +19,7 @@ namespace Microsoft.Tye { get { - return new Option(new[] { "-e", "--environment" }, "Environemnt") + return new Option(new[] { "-e", "--environment" }, "Environment") { Argument = new Argument("environment", () => "production") { diff --git a/src/Microsoft.Tye.Core/ValidateSecretStep.cs b/src/Microsoft.Tye.Core/ValidateSecretStep.cs index 512806d4..5c58d46e 100644 --- a/src/Microsoft.Tye.Core/ValidateSecretStep.cs +++ b/src/Microsoft.Tye.Core/ValidateSecretStep.cs @@ -92,7 +92,7 @@ namespace Microsoft.Tye $"kubectl create secret generic {secretInputBinding.Name} --from-literal=connectionstring="); } - // If we get here then we should create the sceret. + // If we get here then we should create the secret. var text = output.Prompt($"Enter the connection string to use for service '{secretInputBinding.Service.Name}'", allowEmpty: true); if (string.IsNullOrWhiteSpace(text)) { diff --git a/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs b/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs index 65790b29..8e93786b 100644 --- a/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs +++ b/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs @@ -252,7 +252,7 @@ namespace Microsoft.Tye.Hosting.Diagnostics { var source = new EventPipeEventSource(session.EventStream); - // Distribued Tracing + // Distributed Tracing HandleDistributedTracingEvents(source, processor); // Metrics @@ -851,7 +851,7 @@ namespace Microsoft.Tye.Hosting.Diagnostics internal sealed class LoggingEventSource { /// - /// This is public from an EventSource consumer point of view, but since these defintions + /// This is public from an EventSource consumer point of view, but since these definitions /// are not needed outside this class /// public static class Keywords diff --git a/src/Microsoft.Tye.Hosting.Diagnostics/Logging/LogValuesFormatter.cs b/src/Microsoft.Tye.Hosting.Diagnostics/Logging/LogValuesFormatter.cs index 7e1cdfef..8a61b9f3 100644 --- a/src/Microsoft.Tye.Hosting.Diagnostics/Logging/LogValuesFormatter.cs +++ b/src/Microsoft.Tye.Hosting.Diagnostics/Logging/LogValuesFormatter.cs @@ -15,7 +15,7 @@ using System.Text; namespace Microsoft.Tye.Hosting.Diagnostics.Logging { /// - /// Formatter to convert the named format items like {NamedformatItem} to format. + /// Formatter to convert the named format items like {NamedFormatItem} to format. /// internal class LogValuesFormatter { diff --git a/test/E2ETest/DockerAssert.cs b/test/E2ETest/DockerAssert.cs index 0f6de1a8..eeb7be40 100644 --- a/test/E2ETest/DockerAssert.cs +++ b/test/E2ETest/DockerAssert.cs @@ -15,7 +15,7 @@ namespace E2ETest public static class DockerAssert { // Repository is the "registry/image" format. Yeah Docker uses that term for it, and it's - // wierd and confusing. + // weird and confusing. public static async Task AssertImageExistsAsync(ITestOutputHelper output, string repository) { var builder = new StringBuilder();