From d1fa8b17b044f2a25e8b1a74829c5a3d11e0e7f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 15:24:04 +0000 Subject: [PATCH 1/2] Initial plan From a17d7294e1016b26784772fb62e983b2dc678288 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 15:26:07 +0000 Subject: [PATCH 2/2] Fix MA0153 wrongly listed as similar to IDE0330 - should be MA0158 Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com> --- docs/comparison-with-other-analyzers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/comparison-with-other-analyzers.md b/docs/comparison-with-other-analyzers.md index 8ea638db3..8505d32e6 100644 --- a/docs/comparison-with-other-analyzers.md +++ b/docs/comparison-with-other-analyzers.md @@ -69,6 +69,6 @@ | [CA2214](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2214?WT.mc_id=DT-MVP-5003978) | [MA0056](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0056.md) | MA also reports virtual property accesses and inherited virtual member calls | | [CA2022](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2022?WT.mc_id=DT-MVP-5003978) | [MA0060](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0060.md) | Both detect ignored Stream.Read/ReadAsync return values (.NET 9+) | | [CA2208](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208?WT.mc_id=DT-MVP-5003978) | [MA0015](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0015.md) | MA reports more cases | -| [IDE0330](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0330?WT.mc_id=DT-MVP-5003978) | [MA0153](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0153.md) | MA supports variables in methods | +| [IDE0330](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0330?WT.mc_id=DT-MVP-5003978) | [MA0158](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0158.md) | MA supports variables in methods | | [SA1649](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1649.md) | [MA0048](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0048.md) | SA supports configuration of file naming convention and skips partial classes | | [S6580](https://rules.sonarsource.com/csharp/RSPEC-6580/) | [MA0011](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0011.md) | S6580 only applies to parse methods, and also reports diagnostic when `null` is passed as value for format provider argument.|