Added
Removed
Fixed
- Store path of file containing a lint violation relative to the location of the baseline file itself (#1962)
- Print absolute path of file in lint violations when flag "--relative" is not specified in Ktlint CLI (#1963)
- Handle parameter
--code-style=android_studio
in Ktlint CLI identical to deprecated parameter--android
(#1982) - Prevent nullpointer exception (NPE) if class without body is followed by multiple blank lines until end of file
no-consecutive-blank-lines
(#1987) - Allow to 'unset' the
.editorconfig
propertyktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than
when usingktlint_official
code stylefunction-signature
(#1977) - Prevent nullpointer exception (NPE) if or operator at start of line is followed by dot qualified expression
indent
(#1993) - Fix indentation of multiline parameter list in function literal
indent
(#1976) - Restrict indentation of closing quotes to
ktlint_official
code style to keep formatting of other code styles consistent with0.48.x
and beforeindent
(#1971) - Extract rule
no-single-line-block-comment
fromcomment-wrapping
rule. Theno-single-line-block-comment
rule is added as experimental rule to thektlint_official
code style, but it can be enabled explicitly for the other code styles as well. (#1980) - Clean-up unwanted logging dependencies (#1998)
- Fix directory traversal for patterns referring to paths outside of current working directory or any of it child directories (#2002)
Changed
- Moved class
Baseline
fromktlint-cli
toktlint-cli-reporter-baseline
so that Baseline functionality is reusable for API Consumers.