From 0a66b39c3197a5feef4899b9d46ef83e818c0062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 24 Nov 2026 21:44:24 +0100 Subject: [PATCH 1/2] style: lay out the outlet size chain the way SA1143 accepts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main's build fails since StyleCop.Analyzers 1.3.180 (#94) added SA1143, which rejects a multi-line ?: chain that starts its lines with ":". The chain in WaterPointsGeoJson arrived in #90, whose CI still ran on 1.2.0-beta, so each PR was green on its own and the pair broke main. Use the chain layout the rule documents: one condition, "?", branch and ":" per line. Whitespace only. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com> --- src/FwAssist.AppLogic/Services/Map/WaterPointsGeoJson.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FwAssist.AppLogic/Services/Map/WaterPointsGeoJson.cs b/src/FwAssist.AppLogic/Services/Map/WaterPointsGeoJson.cs index 5627f95..8cd4203 100644 --- a/src/FwAssist.AppLogic/Services/Map/WaterPointsGeoJson.cs +++ b/src/FwAssist.AppLogic/Services/Map/WaterPointsGeoJson.cs @@ -174,9 +174,9 @@ private static bool IsOffTheMains(string? waterSource) => } var match = OutletValue().Match(token); - char? size = !match.Success ? null - : match.Groups["letter"].Success ? char.ToUpperInvariant(match.Groups["letter"].Value[0]) - : match.Groups["mm"].Value switch { "110" => 'A', "75" => 'B', "52" => 'C', "25" => 'D', _ => null }; + char? size = !match.Success ? null : + match.Groups["letter"].Success ? char.ToUpperInvariant(match.Groups["letter"].Value[0]) : + match.Groups["mm"].Value switch { "110" => 'A', "75" => 'B', "52" => 'C', "25" => 'D', _ => null }; if (size is not { } s) { return diameters.Length > MaxLabelPartLength ? diameters[..MaxLabelPartLength] : diameters; From e788a0569d9eb35eb55ffef1f416954b47e83134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 24 Nov 2026 21:49:48 +0100 Subject: [PATCH 2/2] docs: add the changelog entry for the SA1143 layout fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com> --- changelog.d/+sa1143-outlet-size-chain.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/+sa1143-outlet-size-chain.fixed.md diff --git a/changelog.d/+sa1143-outlet-size-chain.fixed.md b/changelog.d/+sa1143-outlet-size-chain.fixed.md new file mode 100644 index 0000000..5f2422b --- /dev/null +++ b/changelog.d/+sa1143-outlet-size-chain.fixed.md @@ -0,0 +1 @@ +The build passes again with StyleCop.Analyzers 1.3.180, whose new rule SA1143 rejected how the Hydrantenkarte laid out a conditional.