Как заставить ktlint-gradle работать с Ktlint — плагином IntelliJ IDE. Включая базовую поддержкуAndroid

Форум для тех, кто программирует под Android
Гость
Как заставить ktlint-gradle работать с Ktlint — плагином IntelliJ IDE. Включая базовую поддержку

Сообщение Гость »


In my android project I want to use Ktlint - IntelliJ IDEs Plugin. This plugin requires a baseline file to be generated from the root directory of the project, but ktlint-gradle generates it inside the app module. (Using ktlintGenerateBaseline task)

It is not about file location, I can configure the IDE plugin to look at the file in the app module, but individual baseline entries have their relative paths start from the app module instead of the root directory.

For example: This is a file compatible with IDE plugin

But ktlintGenerateBaseline generates this

Note app/src/androidTest vs src/androidTest

Is there a way to make these two work together?

Thanks.


Источник: https://stackoverflow.com/questions/780 ... luding-bas

Вернуться в «Android»