Skip to content

Allow me to pass an .editorconfig file path into --config-path #1456

@flagbug

Description

@flagbug

Environments:

  • CSharpier Version: 0.30.6
  • Running CSharpier via: dotnet cli
  • Operating System: All
  • .csharpierrc Settings: any
  • .editorconfig Settings: any

Steps to reproduce:
Run dotnet csharpier --config-path ./path/to/editorconfig .

Expected behavior:

CSharpier uses the editorconfig file for configuration. The documentation states

CSharpier has support for a configuration file. You can use any of the following files

A .csharpierrc file in JSON or YAML.
A .csharpierrc.json or .csharpierrc.yaml file.
A .editorconfig file. See EditorConfig section below.

which is why I assumed this would be working

Actual behavior:

CSharpier throws an error: Unhandled exception: (Line: 1, Col: 1, Idx: 0) - (Line: 14, Col: 16, Idx: 214): Exception during deserialization


Not sure if this is even intended to work, I just assumed from the documentation. Feel free to close the issue if this is not an expected behavior!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions