From c60020edd6b88c03ba077b1d33adaa396849eb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20O=2E=20S=C3=B8rensen?= Date: Thu, 13 Aug 2026 19:19:43 +0200 Subject: [PATCH] feat: Take UsingLayoutAnalyser 0.4.0, for UA1002. 0.4.0 adds UA1002, which reports the settings that make something else rewrite the using block. This package spent two releases getting that wrong by hand: the globalconfig carried dotnet_sort_system_directives_first and dotnet_separate_import_directive_groups with a comment explaining why they were harmless, and they were not - they wedged dotnet format for every consumer who formatted from a command line, and it took a downstream repository losing a day to find out. #11 removed them. This is the part that stops them coming back. The keys are gone from here, so UA1002 is silent in this repository, and silence is exactly what a rule that never arrived looks like - which is the failure mode this repository exists to be paranoid about. So it was checked rather than assumed: adding dotnet_separate_import_directive_groups = false to the verification project reports UA1002 through the installed package, and removing it again returns to nothing reported. Consumers get a new warning for configuration they already had, which is the point and is still a behaviour change. Anyone who set either key in their own .editorconfig - an .editorconfig entry beats this globalconfig, so that override was always available - will see UA1002, and under TreatWarningsAsErrors their build stops. Their build was already broken in the way that mattered; only dotnet format knew. That makes this a minor release rather than a patch. Co-Authored-By: Claude Opus 5 --- .../Nota.CodeAnalysis.Verification.csproj | 2 +- Nota.CodeAnalysis/Nota.CodeAnalysis.csproj | 2 +- README.md | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Nota.CodeAnalysis.Verification/Nota.CodeAnalysis.Verification.csproj b/Nota.CodeAnalysis.Verification/Nota.CodeAnalysis.Verification.csproj index 69286f4..d77e0c2 100644 --- a/Nota.CodeAnalysis.Verification/Nota.CodeAnalysis.Verification.csproj +++ b/Nota.CodeAnalysis.Verification/Nota.CodeAnalysis.Verification.csproj @@ -51,7 +51,7 @@ - + diff --git a/Nota.CodeAnalysis/Nota.CodeAnalysis.csproj b/Nota.CodeAnalysis/Nota.CodeAnalysis.csproj index c5c5cc9..80c7361 100644 --- a/Nota.CodeAnalysis/Nota.CodeAnalysis.csproj +++ b/Nota.CodeAnalysis/Nota.CodeAnalysis.csproj @@ -21,7 +21,7 @@ - +