ktlint v0.10.0 Release Notes

Release Date: 2017-10-10 // over 6 years ago
  • โž• Added

    • ๐Ÿ’… Git hook to automatically check files for style violations on commit
      ๐Ÿ‘• (execute ktlint --install-git-pre-commit-hook to install).
    • Ability to specify multiple reporters
      ๐Ÿ‘• (output can be controlled with --reporter=<name>,output=<path/to/file>) (#71).
    • ๐Ÿ‘Œ Support for indent_size=unset (.editorconfig) (#70).

    ๐Ÿ›  Fixed

    • ( { formatting
      ๐Ÿ‘• (previously both ( { and ({ were accepted as correct, while only ({ should be) (curly-spacing rule) (#80).
    • if\nfn {}\nelse formatting (curly-spacing rule).
    • max_line_length=off & max_line_length=unset handling (.editorconfig).

    ๐Ÿ”„ Changed

    • kotlin-compiler version to 1.1.51 (from 1.1.3-2).
    • ktlint --apply-to-idea to include OPTIMIZE_IMPORTS_ON_THE_FLY=true.