https://kotlinlang.org logo
#ktlint
Title
# ktlint
b

Benoît Liessens

11/27/2023, 7:48 PM
I installed beta release of the Ktlint intellij plugin. Several plugin config options have been removed, most notably the error level option. Will this be restored before the final release?
p

Paul Dingemans

11/27/2023, 7:52 PM
No it will not. The behaviour of the plugin is radically changed. Now only violations that can not be autocorrected are displayed. Those should be solved by Dev and as of that are errors. Your use case may vary of course. So why do you not want them to be visible as error?
b

Benoît Liessens

11/27/2023, 8:10 PM
Having formatting issues flagged as error causes too much distraction. I have ktlint plugin in gradle that will automatically format my code and IntelliJ will do the same on action “save” or “format code”. Thus, in an IDE editor window I want to focus on the written code and not be distracted by stuff that ktlint will take care of behind the scenes.
p

Paul Dingemans

11/27/2023, 8:46 PM
Yes that is exactly why the behavior is changed. No lint violations are shown while compilation errors exists. Errors which can be autocorrected will also never be shown. What kind of lint violations are show n that can be autocorrected (and as of that should not have been shown)?
👍 1
b

Benoît Liessens

11/27/2023, 8:56 PM
Couldn’t tell you. Never had a closer look at the flagged ktlint errors TBH.
p

Paul Dingemans

11/28/2023, 8:11 AM
Can you try-out the plugin as it is right now, and let me know what (and when) ktlint violations are interrupting your flow. Preferably via an issue in the project.
b

Benoît Liessens

11/28/2023, 8:17 AM
I would need to update my projects’ Ktlint gradle plugin to also use Ktlint 1.0.1 to avoid conflicts with IntelliJs Ktlint plugin. Will try to make some time for that over coming weeks.
👍 1
2 Views