-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditorConfig template should contain all rules #4393
Comments
@vlada-shubina Please reopen this issue since it is not part of #4126 any more per your comment #4126 (comment) there. And could you please move it to dotnet/sdk? Because the .editorconfig template was moved there. |
Discussion notes:
|
Example of custom generator is here: #5773 |
@jmarolf here's the custom generator example that we spoke about in our last chat. Will you be able to take a look and SWAG out an editorconfig generator in dotnet/sdk? |
feel free to reach me if you'd need some help on understanding that. There are some features which are not available in example, as localization; but imo we can polish it later. |
Step 1 was done in #5773. This PR demonstrates how the custom generator can be implemented. The testing is performed - it works as expected. The remaining work is step 2:
|
The file created by
dotnet new editorconfig
(source) does not contain all available rules. Compared with an EditorConfig file exported by Visual Studio 2022 (via Tools - Options - Text Editor - C# - Code Style - Generate .editorconfig file from settings) it is missing some rules.As of SDK version 7.0.302 the .editorconfig template is missing the following rules:
Also see dotnet/roslyn#60539 for the experimental rules.
Additionally, the .editorconfig template contains the rule
csharp_style_pattern_local_over_anonymous_function
. This rule doesn't exist any more. It is the old name of the rulecsharp_style_prefer_local_over_anonymous_function
.The text was updated successfully, but these errors were encountered: