ktlint v0.37.0 Release Notes

Release Date: 2020-06-02 // almost 4 years ago
  • ๐Ÿš€ Thank you to Tapchicoma and romtsn for all their hard work on this release!

    โž• Added

    • ๐Ÿ‘• Gradle wrapper validation (#684)
    • ๐Ÿ‘• Experimental SpacingAroundDoubleColon rule (#722)
    • ๐Ÿ‘• Experimental SpacingBetweenDeclarationsWithCommentsRule and SpacingBetweenDeclarationsWithAnnotationsRule. Fixes (#721)
    • kotlin_imports_layout config for .editorconfig file so that import ordering is configurable. Fixes (#527)

    ๐Ÿ”„ Changed

    • โšก๏ธ Kotlin was updated to 1.3.70 version
    • ๐Ÿ›  Loading properties from .editorconfig was fully delegated to ec4j library. This fixes ability to override
      ๐Ÿ‘• properties for specific files/directories (#742)
    • ๐Ÿšš Promote experimental "indent" rule to standard one, old standard "indent" rule is removed
    • ๐Ÿ‘• Functions to calculate line/column are now public so they can be used by 3rd party tools (#725)
    • ๐Ÿ‘• AnnotationRule now handles file annotations as well (#714)

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• Ignore keywords in KDoc comments (#671)
    • ๐Ÿ‘ Allow multiple spaces in KDoc comments (#706)
    • ๐Ÿ‘• Trailing comment no longer reported as incorrect indentation (#710)
    • ๐Ÿ‘• Annotated function types no longer reported as an error (#737)
    • ๐Ÿ‘• FinalNewlineRule no longer reports error for empty files (#723)
    • ๐Ÿ‘• EOL comments will no longer cause AnnotationRule to report an error (#736)
    • ๐Ÿ‘• Formatter will no longer break class declaration with trailing comment (#728)
    • ๐Ÿ‘• Formatting for single line if/else statements (#174)
    • ๐Ÿ‘• Exception in NoLineBreakBeforeAssignmentRule (#693)

    โœ‚ Removed

    • โœ‚ Removed Maven; builds all run under Gradle (#445)
    • Old standard IndentRule