Thanks to visit codestin.com
Credit goes to github.com

Skip to content

EditorConfig hierarchy not working as expected #987

@parched

Description

@parched

In the root directory I have .csharperrc.yaml which specifies the line length as 120.
Also, in the root directory I have .editorconfig which doesn't specify the line length.
In subdirectory A I have an .editorconfig which doesn't specify the line length either. (Note it also does not have root = true)

When I run dotnet csharpier . in the root directory, all the files in A get formatted with line length 100 (the default).

I expected the line length in the root .csharpierrc.yaml to be used, but it only does this when the A/.editorconfig doesn't exist.

I've now added max_line_length = 120 to the root .editorconfig and it works, but this was a surprise when upgrading to 0.26.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions