nbadal / ktlint-intellij-plugin

Ktlint plugin for IntelliJ IDEA + Android Studio
MIT License
166 stars 24 forks source link

Rewrite to official plugin #355

Closed paul-dingemans closed 1 year ago

paul-dingemans commented 1 year ago

Rewrite to "Official" plugin

Focus of the plugin is shifted to force use of formatting by KtLint. This prevents developers from fixing errors manually which can be fixed by KtLint.

Add intention to add suppress annotation

The 'Suppress' annotation is added in an indirect way by adding the deprecated "ktlint-disable" directive. This directive does not become visible as due to the change of the Psi, ktlint will be run again and the directive will be replaced with the 'Suppress' annotation by Ktlint rule `ktlint-suppression'.

Closes #339