Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MA0007 doesn't support with initializer and switch expressions #754

Closed
js6pak opened this issue Sep 20, 2024 · 0 comments · Fixed by #756
Closed

MA0007 doesn't support with initializer and switch expressions #754

js6pak opened this issue Sep 20, 2024 · 0 comments · Fixed by #756

Comments

@js6pak
Copy link

js6pak commented Sep 20, 2024

When deciding between MA00071 and SA14132, I've noticed that MA lacks the following 2 things from SA: WithInitializerExpression and SwitchExpression.
Meanwhile, stylecop lacks CollectionExpression support.

Footnotes

  1. https://github.com/meziantou/Meziantou.Analyzer/blob/423b37fe510ca21bbfec2a647317c8c1828bac78/src/Meziantou.Analyzer/Rules/CommaAnalyzer.cs

  2. https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/2dc450799de4dd00b57a3e7f4df31689d3a86c7b/StyleCop.Analyzers/StyleCop.Analyzers/MaintainabilityRules/SA1413UseTrailingCommasInMultiLineInitializers.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant