fantomas icon indicating copy to clipboard operation
fantomas copied to clipboard

[Feature request] Flag for an explicit path to the configuration file (editorconfig)

Open njlr opened this issue 2 years ago • 1 comments

I propose we add a CLI flag for explicit path to a configuration file (.editorconfig)

The existing way of Fantomas deals with this problem is ... rearrange files

Pros and Cons

The advantages of making this adjustment to Fantomas are ... it makes it easier to use Fantomas in certain build systems, such as Bazel

The disadvantages of making this adjustment to Fantomas are ... a small amount of extra code

Examples

dotnet fantomas --config ./somewhere/else/.editorconfig ./Hello.fs

Extra information

Estimated cost (XS, S, M, L, XL, XXL): S

Related suggestions: (put links to related suggestions here)

Affidavit (please submit!)

Please tick this by placing a cross in the box:

Please tick all that apply:

  • [x] This is not a breaking change to Fantomas
  • [x] I or my company would be willing to help implement and/or test this
  • [ ] This suggestion is part of the Microsoft style guide (please add a link to section if so)
  • [ ] This suggestion is part of the G-Research style guide (please add a link to section if so)

njlr avatar Jun 30 '22 19:06 njlr

Hello, this is a bit of a weird request given the nature of how .editorconfig works. Could you elaborate on what is not working in your situation?

nojaf avatar Jul 01 '22 07:07 nojaf

Closing due to lack of activity.

nojaf avatar Dec 05 '22 23:12 nojaf