From c65ca154dbb536a4725029757be980bf3976321a Mon Sep 17 00:00:00 2001 From: Ed Ball Date: Sat, 17 Oct 2026 08:24:45 -0700 Subject: [PATCH 1/2] Add SA1143 suppression to the C# editorconfig docs --- conventions/editorconfig-csharp/files/.editorconfig | 1 + sections/csharp/editorconfig.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/conventions/editorconfig-csharp/files/.editorconfig b/conventions/editorconfig-csharp/files/.editorconfig index 5cc0e12..b359619 100644 --- a/conventions/editorconfig-csharp/files/.editorconfig +++ b/conventions/editorconfig-csharp/files/.editorconfig @@ -214,6 +214,7 @@ dotnet_diagnostic.SA1118.severity = none dotnet_diagnostic.SA1122.severity = none dotnet_diagnostic.SA1133.severity = none dotnet_diagnostic.SA1134.severity = none +dotnet_diagnostic.SA1143.severity = none dotnet_diagnostic.SA1200.severity = none dotnet_diagnostic.SA1201.severity = none dotnet_diagnostic.SA1202.severity = none diff --git a/sections/csharp/editorconfig.md b/sections/csharp/editorconfig.md index 140c07d..92f976c 100644 --- a/sections/csharp/editorconfig.md +++ b/sections/csharp/editorconfig.md @@ -516,6 +516,12 @@ dotnet_diagnostic.SA1134.severity = none The developer can decide how attributes are arranged. +```editorconfig +dotnet_diagnostic.SA1143.severity = none +``` + +The conditional expression rules are too restrictive. + ## [StyleCop: Ordering Rules](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/OrderingRules.md) ```editorconfig From 10a614768867d3e1d127404f6a50192edfa1f6c5 Mon Sep 17 00:00:00 2001 From: Ed Ball Date: Sat, 17 Oct 2026 11:02:15 -0700 Subject: [PATCH 2/2] Update NuGetAudit directive handling --- conventions/update-nuget-packages/convention.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/conventions/update-nuget-packages/convention.cs b/conventions/update-nuget-packages/convention.cs index bbcf393..584fa68 100644 --- a/conventions/update-nuget-packages/convention.cs +++ b/conventions/update-nuget-packages/convention.cs @@ -1,5 +1,6 @@ #:package NuGet.Configuration@7.3.1 #:package NuGet.Protocol@7.3.1 +#:property NuGetAudit=false using NuGet.Common; using NuGet.Configuration;