diff --git a/CHANGELOG.md b/CHANGELOG.md index ac79bb03ea..9ef249f77f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [0.33.0] - 2019-05-28 + +### Added +- Unary operator spacing rule ([#412](https://github.com/pinterest/ktlint/issues/412)) +- Support for Kotlin 1.3.31 + +### Disabled +- No wildcard imports rule ([#48](https://github.com/pinterest/ktlint/issues/48)). Developers wishing to still enforce this rule should add the code into a custom ruleset. + +### Fixed +- Spec file parsing is now platform-agnostic ([#365](https://github.com/pinterest/ktlint/pull/365)) +- Unnecessary newline after `->` in some cases ([#403](https://github.com/pinterest/ktlint/pull/403)) +- `SpacingAroundCommaRule` will no longer move code into comments +- Made newlines after `=` less aggressive ([#368](https://github.com/pinterest/ktlint/issues/368)) ([#380](https://github.com/pinterest/ktlint/issues/380)) +- Erroneous newline when parameter comments are used ([#433](https://github.com/pinterest/ktlint/issues/433)) + ## [0.32.0] - 2019-04-22 ### Added @@ -542,6 +558,7 @@ set in `[*{kt,kts}]` section). ## 0.1.0 - 2016-07-27 +[0.32.0]: https://github.com/shyiko/ktlint/compare/0.32.0...0.33.0 [0.32.0]: https://github.com/shyiko/ktlint/compare/0.31.0...0.32.0 [0.31.0]: https://github.com/shyiko/ktlint/compare/0.30.0...0.31.0 [0.30.0]: https://github.com/shyiko/ktlint/compare/0.29.0...0.30.0 diff --git a/README.md b/README.md index 8b5f5afdf3..11dee9265b 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ max_line_length=off > Skip all the way to the "Integration" section if you don't plan to use `ktlint`'s command line interface. ```sh -curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.32.0/ktlint && +curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.33.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/ ``` @@ -178,7 +178,7 @@ $ ktlint --install-git-pre-commit-hook com.pinterest ktlint - 0.32.0 + 0.33.0 @@ -212,7 +212,7 @@ configurations { } dependencies { - ktlint "com.pinterest:ktlint:0.32.0" + ktlint "com.pinterest:ktlint:0.33.0" // additional 3rd party ruleset(s) can be specified here // just add them to the classpath (e.g. ktlint 'groupId:artifactId:version') and // ktlint will pick them up diff --git a/ktlint-ruleset-template/build.gradle b/ktlint-ruleset-template/build.gradle index 034957c78b..24225e6861 100644 --- a/ktlint-ruleset-template/build.gradle +++ b/ktlint-ruleset-template/build.gradle @@ -49,10 +49,10 @@ configurations { dependencies { compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - provided 'com.pinterest.ktlint:ktlint-core:0.32.0' + provided 'com.pinterest.ktlint:ktlint-core:0.33.0' testCompile 'org.assertj:assertj-core:3.5.2' - testCompile 'com.pinterest.ktlint:ktlint-test:0.32.0' + testCompile 'com.pinterest.ktlint:ktlint-test:0.33.0' testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" testCompile('org.jetbrains.spek:spek-junit-platform-engine:1.1.5') { exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib'