All Versions
75
Latest Version
Avg Release Cycle
48 days
Latest Release
70 days ago

Changelog History
Page 1

  • v0.42.1 Changes

    August 06, 2021

    ๐Ÿš€ Dot release to fix regressions in indent rule introduced in 0.42.0 release. Thanks to t-kameyama for the fixes!

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix false positive with delegated properties (indent) (#1189)
    • ๐Ÿ›  Fix false positive with lambda argument in super type entry (indent) (#1188)
  • v0.42.0 Changes

    July 29, 2021

    ๐Ÿš€ Thank you to the following contributors for this release:

    โž• Added

    • ๐Ÿ‘• SARIF output support (#1102)

    ๐Ÿ›  Fixed

    • โœ‚ Remove needless blank lines in dot qualified expression (#1077)
    • ๐Ÿ›  Fix false positives for SpacingBetweenDeclarationsWithAnnotationsRule (#1125)
    • ๐Ÿ›  Fix false positive with eol comment (annotation-spacing) (#1124)
    • ๐Ÿ›  Fix KtLint dependency variant selection (#1114)
    • ๐Ÿ›  Fix false positive with 'by lazy {}' (indent) (#1162)
    • ๐Ÿ›  Fix false positive with value argument list has lambda (indent) (#764)
    • ๐Ÿ›  Fix false positive in lambda in dot qualified expression (argument-list-wrapping) (#1112)
    • ๐Ÿ›  Fix false positive with multiline expression with elvis operator in assignment (indent) (#1165)
    • ๐Ÿ‘• Ignore backticks in imports for ordering purposes (import-ordering) (#1106)
    • ๐Ÿ›  Fix false positive with elvis operator and comment (chain-wrapping) (#1055)
    • ๐Ÿ›  Fix false negative in when conditions (chain-wrapping) (#1130)
    • ๐Ÿ›  Fix the Html reporter Chinese garbled (#1140)
    • ๐ŸŽ Performance regression introduced in 0.41.0 (#1135)

    ๐Ÿ”„ Changed

    • โšก๏ธ Updated to dokka 1.4.32 (#1148)
    • โšก๏ธ Updated Kotlin to 1.5.20 version
  • v0.41.0 Changes

    March 16, 2021

    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 for max-line-length rule to ignore long method names inside backticks (primarily used in tests) (#1007)
    • ๐Ÿ‘ Allow to add/replace loaded .editorconfig values via ExperimentalParams#editorConfigOverride (#1016)
    • ๐Ÿ‘• ReporterProvider, LintError, RuleSetProvider now implement Serializable 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 use ij_kotlin_imports_layout to ensure that the Kotlin IDE plugin and ktlint use same imports layout (#753)
    • Deprecated idea and ascii shortcuts as the ij_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.
  • v0.40.0 Changes

    December 04, 2020

    ๐Ÿ›  Special thanks to t-kameyama for the huge number of bugfixes in this release!

    โž• Added

    • ๐ŸŽ‰ Initial implementation IDE integration via '.editorconfig' based on rules default values (#701)
    • ๐Ÿ‘• CLI subcommand generateEditorConfig to generate '.editorconfig' content for Kotlin files (#701)
    • ๐Ÿ‘• A new capability to generate baseline and run ktlint against it with --baseline cli option (#707)

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• Do not report when semicolon is before annotation/comment/kdoc and lambda (#825)
    • ๐Ÿ›  Fix false positive when import directive has backticks and alias (#910)
    • ๐Ÿ‘• @receiver annotations with parameters are not required to be on a separate line (#885)
    • ๐Ÿ›  Fix false positive "File annotations should be separated from file contents with a blank line" in kts files (#914)
    • ๐Ÿ›  Fix false positive Missing newline after "->" when when entry has a nested if/else block (#901)
    • ๐Ÿ‘ Allow an inline block comment in argument-list-wrapping (#926)
    • ๐Ÿ›  Fix false positive for line-breaks inside lambdas in argument-list-wrapping (#861) (#870)
    • ๐Ÿ›  Fix wrong indentation inside an if-condition in argument-list-wrapping (#854) (#864)
    • ๐Ÿ›  Fix false positive for method after string template in argument-list-wrapping (#842) (#859)
    • ๐Ÿ›  Fix false positive when a comment is not between declarations in spacing-between-declarations-with-comments(#865)
    • ๐Ÿ›  Fix formatting with comments (multiline-if-else) (#944)
    • ๐Ÿ‘• Do not insert unnecessary spacings inside multiline if-else condition (indent) (#871) (#900)
    • ๐Ÿ‘• Correctly indent primary constructor parameters when class has multiline type parameter (parameter-list-wrapping) (#921) (#938)
    • ๐Ÿ‘• Correctly indent property delegates (indent) (#939)
    • ๐Ÿ›  Fix false positive for semicolon between empty enum entry and member (no-semicolons) (#957)
    • ๐Ÿ›  Fix wrong indentation for class delegates (indent) (#960) (#963) (#877)
    • ๐Ÿ›  Fix wrong indentation in named arguments (indent) (#964)
    • ๐Ÿ›  Fix wrong indentation when a function has multiline type arguments (parameter-list-wrapping) (#965)
    • ๐Ÿ›  Fix false positive for spacing-between-declarations-with-annotations (#970)
    • ๐Ÿ›  Fix ParseException when an assigment contains comments (no-line-break-before-assignment) (#956)
    • ๐Ÿ›  Fix false positive when right brace is after a try-catch block (spacing-around-keyword) (#978)
    • ๐Ÿ›  Fix false positive for control flow with empty body (no-semicolons) (#955)
    • ๐Ÿ›  Fix incorrect indentation for multi-line call expressions in conditions (indent) (#959)
    • ๐Ÿ›  Fix false positive for trailing comma before right parentheses|bracket|angle (spacing-around-comma) (#975)
    • ๐Ÿ›  Fix ktlint CLI could skip checking some of explicetly passed files (#942)

    ๐Ÿ”„ Changed

    • ๐Ÿ‘• 'import-ordering' now supports `.editorconfig' default value generation (#701)
    • โšก๏ธ Update Gradle to 6.7.1 version
  • v0.39.0 Changes

    September 14, 2020

    โž• Added

    • โž• Add new applyToIDEA location for IDEA 2020.1.x and above on MacOs
    • ๐Ÿ–จ Debug output: print loaded .editorconfig content
    • Extract argument-list-wrapping rule into experimental ruleset
    • Split annotation-spacing into separate experimental rule

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• Do not enforce raw strings opening quote to be on a separate line (#711)
    • ๐Ÿ‘• False negative with multiline type parameter list in function signature for parameter-list-wrapping(#680)
    • ๐Ÿ‘• Alternative .editorconfig path is ignored on stdin input (#869)
    • ๐Ÿ‘• False positive with semicolons before annotations/comments/kdoc (#825)
    • ๐Ÿ‘• Do not report when string-template expression is a keyword (#883)
    • ๐Ÿ‘• False positive for subclass imports in no-unused-imports (#845)
    • ๐Ÿ‘• False positive for static java function imports in no-unused-imports (#872)
    • ๐Ÿš€ Missing signature for KtLint CLI artifact published to Github release (#895)
    • ๐Ÿ‘• Crash in annotation rule (#868)
    • ๐Ÿ‘• False-positive unused import violation (#902)

    ๐Ÿ”„ Changed

    • ๐Ÿ‘• Ktlint object internal code cleanup
    • ๐Ÿ‘• Deprecate some of public methods in Ktlint object that should not be exposed as public api
    • โšก๏ธ Update Kotlin to 1.4.10 version
    • ๐Ÿ‘‰ Make RuleSet class open so it can be inherited
  • v0.38.1 Changes

    August 24, 2020

    ๐Ÿš€ Minor release to support projects using mixed 1.3/1.4 Kotlin versions (e.g. Gradle plugins)

    ๐Ÿ”„ Changed

    • Compile with apiLevel = 1.3
  • v0.38.0 Changes

    August 21, 2020

    ๐Ÿ†• New release with Kotlin 1.4.0 support and several enhancements and bugfixes.

    โž• Added

    • ๐Ÿ‘• Experimental SpacingAroundAngleBracketsRule (#769)
    • ๐Ÿ‘• Checksum generation for executable Jar (#695)
    • Enable Gradle dependency verification
    • ๐Ÿ‘• parameter-list-wrapping rule now also considers function arguments while wrapping (#620)
    • Publish snapshots built against kotlin development versions
    • ๐ŸŽ‰ Initial support for tab-based indentation (#128)

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• Safe-called wrapped trailing lambdas indented correctly (#776)
    • ๐Ÿ‘• provideDelegate imports are not marked as unused anymore (#669)
    • ๐Ÿ’… Set continuation indent to 4 in IDE integration codestyle (#775)
    • ๐Ÿ‘• No empty lines between annotation and annotated target (#688)
    • ๐Ÿ‘• Unused imports reported correctly (#526) (#405)
    • ๐Ÿ‘• No false empty lines inserted in multiline if-else block (#793)
    • ๐Ÿ‘• No-wildcard-imports properly handles custom infix function with asterisk (#799)
    • ๐Ÿ‘• Do not require else to be in the same line of a right brace if the right brace is not part of the if statement (#756)
    • ๐Ÿ‘• Brace-less if-else bodies starting with parens indented correctly (#829)
    • ๐Ÿ‘• If-condition with multiline call expression inside indented correctly (#796)

    ๐Ÿ”„ Changed

    • โšก๏ธ Update Gradle to 6.6 version
    • โšก๏ธ Update ec4j to 0.2.2 version. Now it should report path to .editorconfig file on failed parsing
      and allow empty .editorconfig files.
    • โšก๏ธ Update Kotlin to 1.4.0 version (#830)
  • v0.38.0-alpha01 Changes

    August 18, 2020

    ๐Ÿš€ Alpha release built against Kotlin 1.4.

  • v0.37.2 Changes

    June 16, 2020

    ๐Ÿš€ Minor release to fix further bugs in ImportOrderingRule.

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• Imports with aliases no longer removed (#766)
  • v0.37.1 Changes

    June 08, 2020

    ๐Ÿš€ Minor release to fix some bugs in the 0.37.0 release.

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• Invalid path exception error on Windows machines when loading properties from .editorconfig (#761)
    • ๐Ÿ‘• Imports with as no longer removed (#761)
    • ๐Ÿ‘• The contents of raw strings are no longer modified by the indent rule (#682)