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

[BuildCheck][Feature Request]: Make it possible to override the filename of EditorConfig

f-alizada opened this issue · comments

Summary

The pr to support Editorconfig is out #9811 and in Review state.
Once merge I suggest to make it possible to override the file name that is used by the editorconfig parser (now it is .editorconfig)

Background and Motivation

Motivation:

  • Make feature more flexible in terms of configuration
  • Specification does not require the file name to be ".editorconfig" but only it's format (https://spec.editorconfig.org/#terminology)
  • In case we will face perf regression with already existing large .editorconfigs there will be a possibility to create a file configuring only for BuildCheck infra.

Proposed Feature

Propose change:
Add command line switch: /analyzerConfig with key-value possibility
the first configuration to be presented is:
editorConfigFileName:"<filename.anything>"