Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Alex-Sob
Copy link

@Alex-Sob Alex-Sob commented Aug 19, 2025

This PR is the first one in an effort to enable code analysis rules for code analyzers: #50365

Changes

  • Set AnalysisMode to Minimum in Microsoft.CodeAnalysis.NetAnalyzers project.

  • Fix the following errors which are performance rules:

    • 1822: Mark members as static
    • 1859: Use concrete types when possible for improved performance
    • 1860: Avoid using 'Enumerable.Any()' extension method
    • 1861: Avoid constant arrays as arguments

@Alex-Sob Alex-Sob requested a review from a team as a code owner August 19, 2025 15:27
@Alex-Sob Alex-Sob changed the title Use AnalysisMode=minimum in Microsoft.CodeAnalysis.NetAnalyzers and fix errors Use AnalysisMode=minimum in Microsoft.CodeAnalysis.NetAnalyzers and fix errors (perf rules) Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants