Skip to content

Commit acab137

Browse files
Copilotmeziantou
andauthored
Fix IDE0330 comparison incorrectly referencing MA0153 instead of MA0158 (#1036)
* Initial plan * Fix MA0153 wrongly listed as similar to IDE0330 - should be MA0158 Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
1 parent 37df9d1 commit acab137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/comparison-with-other-analyzers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
| [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 |
7070
| [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+) |
7171
| [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 |
72-
| [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 |
72+
| [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 |
7373
| [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 |
7474
| [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.|

0 commit comments

Comments
 (0)