Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 2eb5d67

Browse files
Merge pull request #86 from vedattt/dotnet-format
Carry over .editorconfig from OTD
2 parents 8ee0bb0 + 0951170 commit 2eb5d67

38 files changed

+72
-39
lines changed

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
root = true
2+
3+
[*]
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true
6+
indent_style = space
7+
8+
[*.cs]
9+
csharp_new_line_before_open_brace = all
10+
csharp_new_line_before_else = true
11+
csharp_new_line_before_catch = true
12+
csharp_new_line_before_finally = true
13+
csharp_indent_case_contents = true
14+
csharp_indent_case_contents_when_block = false
15+
csharp_indent_switch_labels = true
16+
csharp_indent_block_contents = true
17+
csharp_space_after_keywords_in_control_flow_statements = true
18+
csharp_space_before_colon_in_inheritance_clause = true
19+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
20+
csharp_space_between_method_call_name_and_opening_parenthesis = false
21+
csharp_space_after_comma = true
22+
csharp_space_after_dot = false
23+
csharp_space_before_dot = false
24+
csharp_space_after_semicolon_in_for_statement = true
25+
csharp_space_before_semicolon_in_for_statement = false
26+
csharp_space_around_declaration_statements = false
27+
dotnet_sort_system_directives_first = true
28+
29+
[*.{cs,cshtml,js}]
30+
indent_size = 4
31+
32+
[*.{sh,md,csproj,json,yml,nix,css}]
33+
indent_size = 2

OpenTabletDriver.Web.Core/Contracts/IRelease.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public interface IRelease
1414

1515
Task<IEnumerable<IReleaseAsset>> GetReleaseAssets();
1616
}
17-
}
17+
}

OpenTabletDriver.Web.Core/Contracts/IReleaseAsset.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public interface IReleaseAsset
77
public string FileName { get; }
88
public string Url { get; }
99
}
10-
}
10+
}

OpenTabletDriver.Web.Core/DependencyInjectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ public static T CreateInstance<T>(this IServiceProvider provider, params object[
1919
return ActivatorUtilities.CreateInstance<T>(provider, parameters);
2020
}
2121
}
22-
}
22+
}

OpenTabletDriver.Web.Core/Framework/DotnetCoreService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ private string GetNormalizedArchitecture(FrameworkArchitecture architecture)
8484
};
8585
}
8686
}
87-
}
87+
}

OpenTabletDriver.Web.Core/FrameworkArchitecture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public enum FrameworkArchitecture
77
x64 = 1 << 1,
88
ARM64 = 1 << 2
99
}
10-
}
10+
}

OpenTabletDriver.Web.Core/FrameworkPlatform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public enum FrameworkPlatform
77
Linux = 1 << 1,
88
MacOS = 1 << 2
99
}
10-
}
10+
}

OpenTabletDriver.Web.Core/GitHub/GitHubRelease.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ public async Task<IEnumerable<IReleaseAsset>> GetReleaseAssets()
4444
return releaseAssets.Select(r => serviceProvider.CreateInstance<GitHubReleaseAsset>(r));
4545
}
4646
}
47-
}
47+
}

OpenTabletDriver.Web.Core/GitHub/GitHubReleaseAsset.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ public GitHubReleaseAsset(ReleaseAsset asset)
1515
public string FileName => asset.Name;
1616
public string Url => asset.BrowserDownloadUrl;
1717
}
18-
}
18+
}

OpenTabletDriver.Web.Core/GitHub/Services/GitHubReleaseService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ private async Task<IReadOnlyList<IRelease>> GetAllReleasesInternal(ICacheEntry e
7070
return releases.Select(r => serviceProvider.CreateInstance<GitHubRelease>(r)).ToArray();
7171
}
7272
}
73-
}
73+
}

0 commit comments

Comments
 (0)