dotnet / dotnet/format

Clarify which .editorconfig options are supported

Open
#1,368 6 comments 1 reaction 0 assignees View on GitHub
Question
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

[Documentation](https://github.com/dotnet/format/blob/main/docs/Supported-.editorconfig-options.md) says:

> The dotnet-format global tool supports the core set of [EditorConfig options](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties)* as well as the [.NET coding convention settings for EditorConfig](https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019).

I tried setting `csharp_new_line_before_members_in_object_initializers = true` and it did nothing. Documentation [is here](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#csharp_new_line_before_members_in_object_initializers).

I tried to look into source code but found only whitespace, newline, usings, etc formatters. So does this tool support codestyle rules defined by microsoft? Or does it rely on analyzers installed from SDK/NuGet? (maybe i misunderstand some concepts here...)

Project targets `aspnetcore 2.2`
SDKs i have installed: `2.2, 3.1, 5.0`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.