Skip to content

Commit b1ee58c

Browse files
authored
Merge pull request #1376 from SimonCropp/remove-some-trailing-whitespace
remove some trailing whitespace
2 parents d80c99f + 98b8d57 commit b1ee58c

File tree

332 files changed

+481
-606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+481
-606
lines changed

src/Microsoft.OpenApi.Hidi/Extensions/CommandExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT license.
2+
// Licensed under the MIT license.
33

44
using System.Collections.Generic;
55
using System.CommandLine;

src/Microsoft.OpenApi.Hidi/Formatters/PowerShellFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static PowerShellFormatter()
2424
{
2525
// Add singularization exclusions.
2626
// Enhancement: Read exclusions from a user provided file.
27-
Vocabularies.Default.AddSingular("(drive)s$", "$1"); // drives does not properly singularize to drive.
27+
Vocabularies.Default.AddSingular("(drive)s$", "$1"); // drives does not properly singularize to drive.
2828
Vocabularies.Default.AddSingular("(data)$", "$1"); // exclude the following from singularization.
2929
Vocabularies.Default.AddSingular("(delta)$", "$1");
3030
Vocabularies.Default.AddSingular("(quota)$", "$1");

src/Microsoft.OpenApi.Hidi/Logger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static ILoggerFactory ConfigureLogger(LogLevel logLevel)
2121
{
2222
c.IncludeScopes = true;
2323
})
24-
#if DEBUG
24+
#if DEBUG
2525
.AddDebug()
2626
#endif
2727
.SetMinimumLevel(logLevel);

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static OpenApiDocument ApplyFilters(HidiOptions options, ILogger logger,
154154
requestUrls = EnumerateJsonDocument(postmanCollection.RootElement, new());
155155
logger.LogTrace("Finished fetching the list of paths and Http methods defined in the Postman collection.");
156156
}
157-
else
157+
else
158158
{
159159
requestUrls = new();
160160
logger.LogTrace("No filter options provided.");
@@ -211,10 +211,9 @@ private static void WriteOpenApi(HidiOptions options, OpenApiFormat openApiForma
211211
}
212212
}
213213

214-
// Get OpenAPI document either from OpenAPI or CSDL
214+
// Get OpenAPI document either from OpenAPI or CSDL
215215
private static async Task<OpenApiDocument> GetOpenApi(HidiOptions options, ILogger logger, string? metadataVersion = null, CancellationToken cancellationToken = default)
216216
{
217-
218217
OpenApiDocument document;
219218
Stream stream;
220219

@@ -285,7 +284,7 @@ private static async Task<OpenApiDocument> GetOpenApi(HidiOptions options, ILogg
285284

286285
private static Dictionary<string, List<string>> GetRequestUrlsFromManifest(ApiDependency apiDependency)
287286
{
288-
// Get the request URLs from the API Dependencies in the API manifest
287+
// Get the request URLs from the API Dependencies in the API manifest
289288
var requests = apiDependency
290289
.Requests.Where(static r => !r.Exclude && !string.IsNullOrEmpty(r.UriTemplate) && !string.IsNullOrEmpty(r.Method))
291290
.Select(static r => new { UriTemplate = r.UriTemplate!, Method = r.Method! })

src/Microsoft.OpenApi.Hidi/OpenApiSpecVersionHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public static OpenApiSpecVersion TryParseOpenApiSpecVersion(string value)
1818

1919
if (int.TryParse(res, out int result))
2020
{
21-
2221
if (result >= 2 && result < 3)
2322
{
2423
return OpenApiSpecVersion.OpenApi2_0;

src/Microsoft.OpenApi.Hidi/Options/CommandOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public IReadOnlyList<Option> GetPluginCommandOptions()
104104
LogLevelOption
105105
};
106106
}
107-
108107
}
108+
109109
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT license.
2+
// Licensed under the MIT license.
33

44
namespace Microsoft.OpenApi.Hidi.Options
55
{
@@ -8,6 +8,6 @@ internal class FilterOptions
88
public string? FilterByOperationIds { get; internal set; }
99
public string? FilterByTags { get; internal set; }
1010
public string? FilterByCollection { get; internal set; }
11-
public string? FilterByApiManifest { get; internal set; }
11+
public string? FilterByApiManifest { get; internal set; }
1212
}
1313
}

src/Microsoft.OpenApi.Hidi/Options/HidiOptions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT license.
2+
// Licensed under the MIT license.
33

44
using System.CommandLine.Parsing;
55
using System.IO;
@@ -35,7 +35,6 @@ public HidiOptions(ParseResult parseResult, CommandOptions options)
3535

3636
public HidiOptions()
3737
{
38-
3938
}
4039

4140
private void ParseHidiOptions(ParseResult parseResult, CommandOptions options)

src/Microsoft.OpenApi.Hidi/StatsVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT license.
2+
// Licensed under the MIT license.
33

44
using System;
55
using System.Collections.Generic;

src/Microsoft.OpenApi.Hidi/Utilities/SettingsUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT license.
2+
// Licensed under the MIT license.
33

44
using Microsoft.Extensions.Configuration;
55
using Microsoft.OpenApi.OData;

0 commit comments

Comments
 (0)