Skip to content

Pick TabsAndIndentsStyle from .editorconfig #3666

@vlsi

Description

@vlsi

What problem are you trying to solve?

I am trying to duplicate the configuration between .editorcofig and OpenRewrite.

Describe the solution you'd like

I would like OpenRewrite to infer TabsAndIndentsStyle settings from https://editorconfig.org/ settings

Have you considered any alternatives or workarounds?

Frankly speaking, I have not.

Additional context

https://editorconfig.org/ is a well-known standard for configuring common IDE settings, and many IDEs support .editorconfig files natively.
It would be great if OpenRewrite could reuse the settings from there.

.editorconfig settings are flexible: the settings can be divided into several files, and the indent style can vary across files.

See https://github.com/pgjdbc/pgjdbc/blob/9cf9f36a1d3a1edd9286721f9c0b9cfa9e8422e3/.editorconfig#L31-L43

Are you interested in contributing this feature to OpenRewrite?

I am about to integrate OpenRerwite, so I am not sure I would have time to implement editorconfig support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions