ktlint-intellij-plugin icon indicating copy to clipboard operation
ktlint-intellij-plugin copied to clipboard

An (unofficial) ktlint plugin for IntelliJ + Android Studio

Results 17 ktlint-intellij-plugin issues
Sort by recently updated
recently updated
newest added

I think that the current method of adding additional rulesets is really basic and it would be better if there was a way to provide the maven coordinates to a...

com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'com.nbadal.ktlint.actions.LintAction' must override getActionUpdateThread and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.nbadal.ktlint] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90) at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)...

**With ktLint plugin disabled:** ![image](https://github.com/nbadal/ktlint-intellij-plugin/assets/1458891/3db82743-fec1-41f7-adc9-f9404c44da1a) **With ktLint plugin enabled (distract free mode):** ![image](https://github.com/nbadal/ktlint-intellij-plugin/assets/1458891/4554a930-de3e-47f6-bcef-d4b225750534) It hides all Idea suggestions, so the code can't be autocorrected by suggestions and must be fixed...

If a violation can be autocorrected, then offer a possibility to autocorrect that specific violation only. Blocked by #385

[K2 Kotlin Mode (Alpha) in IntelliJ IDEA](https://blog.jetbrains.com/idea/2024/03/k2-kotlin-mode-alpha-in-intellij-idea/) When enabled and the IDE restarted, the ktlint plugin is disabled. ![image](https://github.com/nbadal/ktlint-intellij-plugin/assets/427747/f3a60227-5a4c-4d31-b2cb-7cfc8789716c) Of course, this is in alpha, but would be handy and...

Currently a suppression can only be added for the current statement. Make it possible to add the suppression on the method, class or file in which the statement occurs. Of...

Would love to be able to programmatically set our `ktlint` version based on a value in our `dependencies.toml` file ([version catalog](https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog))

enhancement
help wanted

When changing the ktlint settings, ask the user whether files need to be reformatted: * none: user will reformat files manually * open files: only currently opened files are reformatted...

It would be nice if a ktlint suppression on a statement/methode/class can be moved/merged with the suppression at a higher level. When a suppression is moved to a higher level,...