Skip to content

Add a custom rule identifier. #10083

@YuliiaKovalova

Description

@YuliiaKovalova

There is a need to understand if a rule belongs to custom category or is a build-in for .editorconfig purposes.
I suggest to create a child class CustomBuildAnalyzer.cs for custom analyzers from

/// <see cref="BuildAnalyzer"/> is a unit of build analysis execution, but it can contain multiple rules - each representing a distinct violation.

and restrict on this type during instantiation : https://github.com/dotnet/msbuild/blob/c305c6901b2bf74867efcb8b6c5f3083ef81c30b/src/Build/BuildCheck/Acquisition/BuildCheckAcquisitionModule.cs#L45C1-L46C1

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions