ktlint v0.41.0 Release Notes
Release Date: 2021-03-16 // about 3 years ago-
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.
- New