0.41.0
[0.41.0] - 2021-03-16
Note: This release contains breaking changes to globs passed to ktlint via the command line. See (#999) and the README.
Thank you to t-kameyama and paul-dingemans for your contributions to this release!
Added
- New
ktlint_ignore_back_ticked_identifier
EditorConfig option formax-line-length
rule to ignore long method names inside backticks
(primarily used in tests) (#1007) - Allow to add/replace loaded
.editorconfig
values viaExperimentalParams#editorConfigOverride
(#1016) ReporterProvider
,LintError
,RuleSetProvider
now implementSerializable
interface
Fixed
- Incorrect indentation with multiple interfaces (#1003)
- Empty line before primary constructor is not reported and formatted-out (#1004)
- Fix '.editorconfig' generation for "import-ordering" rule (#1011)
- Fix "filename" rule will not work when '.editorconfig' file is not found (#997)
- EditorConfig generation for
import-ordering
(#1011) - Internal error (
no-unused-imports
) (#996) - Fix false positive when argument list is after multiline dot-qualified expression (
argument-list-wrapping
) (#893) - Fix indentation for function types after a newline (
indent
) (#918) - Don't remove the equals sign for a default argument (
no-line-break-before-assignment
) (#1039) - Fix internal error in
no-unused-imports
(#1040) - Fix false positives when declaration has tail comments (
spacing-between-declarations-with-comments
) (#1053) - Fix false positive after
else
keyword (argument-list-wrapping
) (#1047) - Fix formatting with comments (
colon-spacing
) (#1057) - Fix IndexOutOfBoundsException in
argument-list-wrapping-rule
formatting file with many corrections (#1081) - Fix formatting in arguments (
multiline-if-else
) (#1079) - Fix experimental:annotation-spacing-rule autocorrection with comments
- Migrate from klob dependency and fix negated globs passed to CLI are no longer worked (#999)
Breaking: absolute paths globs will no longer work, check updated README
Changed
- Update Gradle shadow plugin to
6.1.0
version - Align with Kotlin plugin on how alias pattern is represented for imports layout rule (#753)
- Align with Kotlin plugin on how subpackages are represented (#753)
- Deprecated custom
kotlin_imports_layout
EditorConfig property. Please useij_kotlin_imports_layout
to ensure
that the Kotlin IDE plugin and ktlint use same imports layout (#753) - Deprecated
idea
andascii
shortcuts as theij_kotlin_imports_layout
property does not support those.
Please check README on how to achieve those with patterns (#753) - Update Gradle to
6.8.3
version - Update Kotlin to
1.4.31
version. Fixes #1063.