Skip to content

Commit 8019468

Browse files
committed
Code formatting moved static initializers in an order that did not evaluate, this commit needs backporting to 5.x and master
1 parent 9fa3764 commit 8019468

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/CodeGeneration/ApiGenerator/CodeConfiguration.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ public static class CodeConfiguration
1010
{
1111
private static string _root = null;
1212

13+
// @formatter:off — disable formatter after this line
14+
public static string EsNetFolder { get; } = $@"{Root}..\..\..\src\Elasticsearch.Net\";
15+
public static string LastDownloadedVersionFile { get; } = Path.Combine(Root, "last_downloaded_version.txt");
16+
17+
public static string NestFolder { get; } = $@"{Root}..\..\..\src\Nest\";
18+
public static string RestSpecificationFolder { get; } = $@"{Root}RestSpecification\";
19+
public static string ViewFolder { get; } = $@"{Root}Views\";
20+
// @formatter:on — enable formatter after this line
21+
1322
public static readonly Assembly Assembly = typeof(ApiGenerator).Assembly;
1423

1524
public static readonly Dictionary<string, string> ApiNameMapping =
@@ -50,13 +59,6 @@ where c.StartsWith("I") && c.Contains("Request")
5059
.ToDictionary(k => k.Key, v => v.Value);
5160

5261

53-
public static string EsNetFolder { get; } = $@"{Root}..\..\..\src\Elasticsearch.Net\";
54-
public static string LastDownloadedVersionFile { get; } = Path.Combine(Root, "last_downloaded_version.txt");
55-
56-
public static string NestFolder { get; } = $@"{Root}..\..\..\src\Nest\";
57-
public static string RestSpecificationFolder { get; } = $@"{Root}RestSpecification\";
58-
public static string ViewFolder { get; } = $@"{Root}Views\";
59-
6062
private static string Root
6163
{
6264
get

0 commit comments

Comments
 (0)