Skip to content

Commit 9a6119c

Browse files
committed
Updated .editorconfig with some new settings
1 parent f32202b commit 9a6119c

File tree

2 files changed

+44
-39
lines changed

2 files changed

+44
-39
lines changed

.editorconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ root = true
33
# All files
44
[*]
55
indent_style = space
6+
charset = utf-8
67

78
# Xml files
8-
[*.xml]
9+
[*.{xml,props}]
910
indent_size = 2
1011

1112
# .NET files
@@ -134,7 +135,9 @@ csharp_style_prefer_tuple_swap = true:suggestion
134135
csharp_style_prefer_utf8_string_literals = true:suggestion
135136
csharp_style_prefer_null_check_over_type_check = true:warning
136137
csharp_style_prefer_local_over_anonymous_function = true:suggestion
138+
csharp_style_prefer_implicitly_typed_lambda_expression = true:suggestion
137139
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
140+
csharp_style_prefer_unbound_generic_type_in_nameof = true:suggestion
138141

139142
# 'using' directive preferences
140143
csharp_using_directive_placement = outside_namespace:warning
@@ -146,6 +149,8 @@ csharp_style_namespace_declarations = file_scoped:warning
146149
csharp_style_prefer_method_group_conversion = true:suggestion
147150
csharp_style_prefer_top_level_statements = true:warning
148151
csharp_style_prefer_primary_constructors = true:suggestion
152+
csharp_prefer_system_threading_lock = true:suggestion
153+
csharp_style_prefer_simple_property_accessors = true:suggestion
149154

150155
# New line preferences
151156
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent

src/Directory.Build.props

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
<Project>
2-
<PropertyGroup>
3-
<Version>10.0.0-rc.1</Version>
4-
<TargetFramework>net10.0</TargetFramework>
5-
</PropertyGroup>
2+
<PropertyGroup>
3+
<Version>10.0.0-rc.1</Version>
4+
<TargetFramework>net10.0</TargetFramework>
5+
</PropertyGroup>
66

7-
<PropertyGroup>
8-
<Authors>Fusonic</Authors>
9-
<Company>Fusonic GmbH</Company>
10-
<Copyright>Fusonic Gmbh</Copyright>
11-
<PackageIcon>icon.png</PackageIcon>
12-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
14-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
15-
<LangVersion>preview</LangVersion>
16-
</PropertyGroup>
7+
<PropertyGroup>
8+
<Authors>Fusonic</Authors>
9+
<Company>Fusonic GmbH</Company>
10+
<Copyright>Fusonic Gmbh</Copyright>
11+
<PackageIcon>icon.png</PackageIcon>
12+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
14+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
15+
<LangVersion>preview</LangVersion>
16+
</PropertyGroup>
1717

18-
<PropertyGroup>
19-
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
20-
<Nullable>enable</Nullable>
21-
<Features>strict</Features>
22-
<ImplicitUsings>enable</ImplicitUsings>
23-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
24-
<NoWarn>$(NoWarn),CS1591</NoWarn>
25-
<ArtifactsPath>$(MSBuildThisFileDirectory)../artifacts</ArtifactsPath>
26-
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
27-
</PropertyGroup>
18+
<PropertyGroup>
19+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
20+
<Nullable>enable</Nullable>
21+
<Features>strict</Features>
22+
<ImplicitUsings>enable</ImplicitUsings>
23+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
24+
<NoWarn>$(NoWarn),CS1591</NoWarn>
25+
<ArtifactsPath>$(MSBuildThisFileDirectory)../artifacts</ArtifactsPath>
26+
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
27+
</PropertyGroup>
2828

29-
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
30-
<!-- Disabled CA1707 to allow underscores in identifiers like test method names -->
31-
<NoWarn>$(NoWarn), CA1707, CS1591</NoWarn>
32-
</PropertyGroup>
29+
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
30+
<!-- Disabled CA1707 to allow underscores in identifiers like test method names -->
31+
<NoWarn>$(NoWarn), CA1707, CS1591</NoWarn>
32+
</PropertyGroup>
3333

34-
<PropertyGroup Condition="'$(GITLAB_CI)' == 'true'">
35-
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
36-
</PropertyGroup>
34+
<PropertyGroup Condition="'$(GITLAB_CI)' == 'true'">
35+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
36+
</PropertyGroup>
3737

38-
<ItemGroup>
39-
<PackageReference Include="Microsoft.SourceLink.Github" PrivateAssets="All"/>
40-
<None Include="..\..\..\icon.png">
41-
<Pack>True</Pack>
42-
<PackagePath></PackagePath>
43-
</None>
44-
</ItemGroup>
38+
<ItemGroup>
39+
<PackageReference Include="Microsoft.SourceLink.Github" PrivateAssets="All"/>
40+
<None Include="..\..\..\icon.png">
41+
<Pack>True</Pack>
42+
<PackagePath></PackagePath>
43+
</None>
44+
</ItemGroup>
4545
</Project>

0 commit comments

Comments
 (0)