Skip to content

0.49.1

Compare
Choose a tag to compare
@github-actions github-actions released this 12 May 20:03
· 395 commits to master since this release
709c6ce

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 property ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than when using ktlint_official code style function-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 with 0.48.x and before indent (#1971)
  • Extract rule no-single-line-block-comment from comment-wrapping rule. The no-single-line-block-comment rule is added as experimental rule to the ktlint_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 from ktlint-cli to ktlint-cli-reporter-baseline so that Baseline functionality is reusable for API Consumers.