Skip to content

Commit ebbd109

Browse files
authored
Update namespace style and enable NU1608 warning (coverlet-coverage#1806)
* Update namespace style and enable NU1608 warning Changed namespace declarations to block-scoped in .editorconfig for silent enforcement. Removed NU1608 from NoWarn in Directory.Build.props to report this warning during builds. * Remove NU5129 and NU5127 from NoWarn property in project file * Remove NU1900 from NoWarn property in Directory.Build.props
1 parent b0d781a commit ebbd109

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,3 @@ csharp_style_prefer_top_level_statements = true:silent
237237
csharp_style_prefer_primary_constructors = true:suggestion
238238
csharp_style_expression_bodied_lambdas = true:silent
239239
csharp_style_expression_bodied_local_functions = false:silent
240-
dotnet_diagnostic.IDE0007.severity = suggestion

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
2020
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
2121
<LangVersion>12.0</LangVersion>
22-
<NoWarn>$(NoWarn);NU1507;NU5105;CS1591;NU1608;NU1900</NoWarn>
22+
<NoWarn>$(NoWarn);NU1507;NU5105;CS1591</NoWarn>
2323
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2424
<RestoreSources>
2525
https://api.nuget.org/v3/index.json;

src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<EnablePackageValidation>true</EnablePackageValidation>
1919
<GenerateDependencyFile>true</GenerateDependencyFile>
2020
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
21-
<NoWarn>$(NoWarn);NU5100;NU5129;NU5127</NoWarn>
21+
<NoWarn>$(NoWarn);NU5100</NoWarn>
2222
<!-- create SBOM for CI build-->
2323
<GenerateSBOM>true</GenerateSBOM>
2424
</PropertyGroup>

0 commit comments

Comments
 (0)