Skip to content

Refactoring DiagnosticDescriptors.cs files #60831

Closed
@benhopkinstech

Description

@benhopkinstech

I noticed that there are several DiagnosticDescriptor.cs files across the solution, and I believe there are a couple improvements we can make.

For example, we have many repeated strings across descriptors, so we could introduce constants to maintain consistency.

Additionally, where we're using LocalizableResourceString, we could create a helper method to make the code more concise.

I also considered creating a complete helper method to generate the descriptors, but I believe the current structure is more readable and easier to understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions