mirror of
				https://github.com/velopack/velopack.git
				synced 2025-10-25 15:19:22 +00:00 
			
		
		
		
	enforce file-scoped namespaces
This commit is contained in:
		| @@ -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 | ||||||
| @@ -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> | ||||||
|   | |||||||
| @@ -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> | ||||||
|   | |||||||
| @@ -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> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user