enforce file-scoped namespaces

This commit is contained in:
Caelan Sayler
2024-02-02 12:10:53 +00:00
parent 633929fd7a
commit d9d4c9b3fa
4 changed files with 8 additions and 1 deletions

View File

@@ -202,5 +202,9 @@ cpp_wrap_preserve_blocks = one_liners
indent_size = 2 indent_size = 2
[*.cs] [*.cs]
# for mapperly
dotnet_diagnostic.RMG012.severity = error # Unmapped target member dotnet_diagnostic.RMG012.severity = error # Unmapped target member
dotnet_diagnostic.RMG020.severity = error # Unmapped source member dotnet_diagnostic.RMG020.severity = error # Unmapped source member
# file scoped namespaces
csharp_style_namespace_declarations = file_scoped:warning

View File

@@ -6,6 +6,7 @@
<BuiltInComInteropSupport>true</BuiltInComInteropSupport> <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault> <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<NoWarn>$(NoWarn);IDE0161</NoWarn>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -7,6 +7,7 @@
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<EnableWindowsTargeting>true</EnableWindowsTargeting> <EnableWindowsTargeting>true</EnableWindowsTargeting>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);IDE0161</NoWarn>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>

View File

@@ -6,6 +6,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<SignAssembly>True</SignAssembly> <SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Velopack.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>..\..\Velopack.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);IDE0161</NoWarn>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>