dotnet / dotnet/roslyn

Configure CA1502 Avoid excessive complexity through .editorconfig

Open
#85,175 0 comments 0 reactions 0 assignees View on GitHub
Area-IDE Feature Request
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

**Brief description:**

Configure CA1502 through .editorconfig instead of a textfile so we can consolidate all analyzer configuration from .editorconfig
(The comment in the issue template is outdated `` and not sure if it should be in this or the SDK repo, please move if this is the wrong repo)

And any other rule using the text file like CA1501 CA1505 and CA1506

**Languages applicable:**

Is your analyzer C# only? VB Only? Or Both?

Unsure but I only care about C#

A small code snippet that describes a case that the analyzer should report.

N/A

Any more additional information you would like to add.

When this analyzer is implemented, it must be documented by following the steps at [Documentation for IDE CodeStyle analyzers](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Documentation%20for%20IDE%20CodeStyle%20analyzers.md).

Existing docs is here https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1502

Contributor guide

Open the contributing guide

Research direction

Start by locating how CA1502 currently reads its text-file configuration, then compare the handling of CA1501, CA1505, and CA1506. Read the linked IDE CodeStyle analyzer documentation guidance and the existing CA1502 documentation; done means the rules can be configured through .editorconfig and the required documentation is updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.