dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.

Home Page:https://docs.microsoft.com/visualstudio/msbuild/msbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a custom rule identifier.

YuliiaKovalova opened this issue · comments

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