Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorconfig file no longer loaded since to update to ktlint 0.47.x #508

Closed
paul-dingemans opened this issue Aug 27, 2022 · 1 comment · Fixed by #509
Closed

Editorconfig file no longer loaded since to update to ktlint 0.47.x #508

paul-dingemans opened this issue Aug 27, 2022 · 1 comment · Fixed by #509

Comments

@paul-dingemans
Copy link

Hi,

I am maintainer on the ktlint project. Due to a change in ktlint 0.47.x the ".editorconfig" is no longer loaded whenever a relative filepath is specified when calling the ktlint API. On https://github.com/gantsign/ktlint-maven-plugin/blob/main/src/main/kotlin/com/github/gantsign/maven/plugin/ktlint/internal/AbstractCheckSupport.kt#L191 the relative file path is specified when calling ktlint API. Can this please be change to an absolute path?

Following problems will most likely be resolved with this change:

freemanjp added a commit that referenced this issue Aug 28, 2022
Was only looking in the current module.

Fixes #507
Fixes #508
freemanjp added a commit that referenced this issue Aug 28, 2022
Was only looking in the current module.

Fixes #507
Fixes #508
@freemanjp
Copy link
Member

Hi @paul-dingemans, thanks for identifying the problem you can find the fix in version 1.15.1 of this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants