All Versions
64
Latest Version
Avg Release Cycle
28 days
Latest Release
81 days ago

Changelog History
Page 5

  • v0.9.1

    July 30, 2017

    🛠 Fixed

    • 👕 ${super.toString()} linting (string-template rule) (#69).
  • v0.9.0

    July 23, 2017

    ➕ Added

    • 👕 [Reporter](ktlint-core/src/main/kotlin/com/github/shyiko/ktlint/core/Reporter.kt) API.
      ktlint comes with 3 built-in reporters: plain (default; ?group_by_file can be appended to enable grouping by file (shown below)), json and checkstyle. $ ktlint --reporter=plain?group_by_file path/to/file.kt 1:10 Unused import. 2:10 Unnecessary "Unit" return type. path/to/another-file.kt 1:10 Unnecessary semicolon.
    • 👕 string-template,
      👕 no-empty-class-body,
      👕 max-line-length (#47),
      final-newline (activated only if insert_final_newline is set in .editorconfig (under [*.{kt,kts}])) rules.
    • --limit CLI option (e.g. use --limit=10 to limit the number of errors to display).
    • 👕 --relative CLI flag which makes ktlint output file paths relative to working directory (e.g. dir/file.kt instead of /home/269/project/dir/file.kt).

    🔄 Changed

    • 💥 BREAKING: JDK version to 1.8 (as a result of upgrading kotlin-compiler to 1.1.3-2 (from 1.1.0)).
    • File matching (offloaded to klob).

    🗄 Deprecated

    • ⚡️ --ruleset-repository and --ruleset-update CLI arguments in favour of --repository and --repository-update 🚚 respectively (--ruleset-* will be removed in 1.0.0).
    • 👕 ktlint-intellij-idea-integration binary
      👕 (Intellij IDEA integration task is now included in ktlint (as ktlint --apply-to-idea)).
  • v0.8.3

    June 19, 2017

    🛠 Fixed

    • 👕 "Missing spacing after ";"" at the end of package declaration (#59).
    • 👕 "Unused import" false positive (setValue) (#55).
    • 👕 get/setter spacing (#56).
  • v0.8.2

    June 06, 2017

    🛠 Fixed

    • 👕 "Unused import" false positive (getValue) (#54).
  • v0.8.1

    May 30, 2017

    🛠 Fixed

    • 👕 ktlint --stdin (#51).
  • v0.8.0

    May 30, 2017

    ➕ Added

    • 👍 .editorconfig support (right now only indent_size is honored and only if it's set in [*{kt,kts}] section).
    • 👌 Support for vertically aligned comments (see [NoMultipleSpacesRuleTest.kt](ktlint-ruleset-standard/src/test/kotlin/com/github/shyiko/ktlint/ruleset/standard/NoMultipleSpacesRuleTest.kt)).

    🛠 Fixed

    • 👕 ktlint-ruleset-standard ("no-unit-return" & "modifier-order" where not included).
  • v0.7.1

    May 29, 2017

    🛠 Fixed

    • 👕 Triggering of "Unused import" when element is referenced in KDoc(s) only (#46).
  • v0.7.0

    May 28, 2017

    ➕ Added

    • 👕 no-unit-return rule.
    • 👕 modifier-order rule (#42).
    • else/catch/finally on the same line as } check (now part of "keyword-spacing" rule).
    • 👕 ktlint-intellij-idea-integration binary for easy Intellij IDEA config injection.
  • v0.6.2

    May 22, 2017

    🛠 Fixed

    • 👕 Unused "iterator" extension function import false positive (#40).
  • v0.6.1

    March 06, 2017

    🛠 Fixed

    • 📦 Detection of unnecessary "same package" imports (no-unused-imports).
    • 👕 FileNotFoundException while scanning FS (#36).