Skip to content

Commit 49f376b

Browse files
Prepare release 1.3.1 (#2730)
1 parent 17a240d commit 49f376b

File tree

3 files changed

+53
-9
lines changed

3 files changed

+53
-9
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [1.3.1] - 2024-07-02
6+
7+
### 🔧 Fixes
8+
* Add link for backing-property-naming, correct binary-expression-wrapping - [#2704](https://github.com/pinterest/ktlint/pull/2704), by @rsmith20
9+
* Do not insert a whitespace element as first or last child inside a composite element - [#2715](https://github.com/pinterest/ktlint/pull/2715), by @paul-dingemans
10+
* Do not rewrite a class to a single line signature in case it contains an EOL comment - [#2716](https://github.com/pinterest/ktlint/pull/2716), by @paul-dingemans
11+
* Fix false positive when anonymous function is used as value argument - [#2718](https://github.com/pinterest/ktlint/pull/2718), by @paul-dingemans
12+
* Fix suppression handling when 'formatter:on' not properly specified - [#2719](https://github.com/pinterest/ktlint/pull/2719), by @paul-dingemans
13+
* Fix false positive when primary constructor has no arguments and a secondary constructor exists - [#2717](https://github.com/pinterest/ktlint/pull/2717), by @paul-dingemans
14+
* Ignore suppressions for no-unused-imports rule - [#2720](https://github.com/pinterest/ktlint/pull/2720), by @paul-dingemans
15+
* Ignore suppressions in rule `no-unused-imports` - [#2725](https://github.com/pinterest/ktlint/pull/2725), by @paul-dingemans
16+
* Fix false alert `Format was not able to resolve all violations which (theoretically) can be autocorrected` - [#2727](https://github.com/pinterest/ktlint/pull/2727), by @paul-dingemans
17+
* Fix "unset" value for property ktlint_chain_method_rule_force_multiline_when_chain_operator_count_greater_or_equal_than - [#2728](https://github.com/pinterest/ktlint/pull/2728), by @paul-dingemans
18+
19+
### 📦 Dependencies
20+
21+
* Update dependency gradle to v8.8 - [#2680](https://github.com/pinterest/ktlint/pull/2680), by @renovate[bot]
22+
* Update plugin com.gradle.develocity to v3.17.5 - [#2697](https://github.com/pinterest/ktlint/pull/2697), by @renovate[bot]
23+
* Update actions/checkout digest to 692973e - [#2699](https://github.com/pinterest/ktlint/pull/2699), by @renovate[bot]
24+
* Update dependency io.github.hakky54:logcaptor to v2.9.3 - [#2707](https://github.com/pinterest/ktlint/pull/2707), by @renovate[bot]
25+
* Update dependency org.junit.jupiter:junit-jupiter to v5.10.3 - [#2721](https://github.com/pinterest/ktlint/pull/2721), by @renovate[bot]
26+
27+
### 💬 Other
28+
29+
* Remove sdkman - [#2693](https://github.com/pinterest/ktlint/pull/2693), by @paul-dingemans
30+
531
## [1.3.0] - 2024-06-04
632

733
### 🆕 Features
@@ -2469,6 +2495,7 @@ set in `[*{kt,kts}]` section).
24692495

24702496
## 0.1.0 - 2016-07-27
24712497

2498+
[1.3.1]: https://github.com/pinterest/ktlint/compare/1.3.1...1.3.0
24722499
[1.3.0]: https://github.com/pinterest/ktlint/compare/1.3.0...1.2.1
24732500
[1.2.1]: https://github.com/pinterest/ktlint/compare/1.2.1...1.2.0
24742501
[1.2.0]: https://github.com/pinterest/ktlint/compare/1.2.0...1.1.1

RELEASE_TESTING.MD

+25-8
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Before releasing a new version of KtLint, the release candidate is tested on a s
4040
```
4141
4. Create an alias or script to run the latest released version of ktlint (note that this script will print the version as reference to which version is used):
4242
```shell
43-
alias ktlint-prev="ktlint-1.2.1 $@" # Replace with the latest release version
43+
alias ktlint-prev="ktlint-1.3.0 $@" # Replace with the latest release version
4444
```
4545
Note that `~/git/ktlint` is the directory in which the ktlint project is checked out and that `~/git/ktlint/ktlint` refers to the `ktlint` CLI-module.
4646
5. Create an alias or script to run the latest development-version of ktlint (note that this script will print the version and the datetime of compilation as reference to which version is used):
@@ -79,16 +79,20 @@ Formatting projects in which ktlint is not used may result in a huge amount of f
7979
1. Define `.editorconfig` in the integration test directory with content below. Also follow up the instructions mentioned:
8080
```editorconfig
8181
root = true
82+
83+
[graphql-kotlin/**/*.{kt,kts}]
84+
ktlint_standard_no-unused-imports = disabled
85+
ktlint_standard_import-ordering = disabled
86+
87+
[kotlinx.coroutines/**/*.{kt,kts}]
88+
ktlint_standard_no-wildcard-imports = disabled
89+
8290
[*.{kt,kts}]
8391
# The open source projects that are used for release testing of ktlint contain a few '.editorconfig' files which need to
8492
# be changed:
8593
# 1) Disable the "root = true" property so that each project ultimately falls back on this file. In this way offending
8694
# rules can be easily enabled/disabled for all test projects
87-
# 2) Remove property below from graphql-kotlin
88-
# disabled_rules=import-ordering
89-
# And add properties below:
90-
# ktlint_standard_import-ordering = disabled
91-
# ktlint_standard_package-name = disabled
95+
# 2) From the graphql project remove the `disabled_rules` property
9296
ktlint_code_style = ktlint_official
9397
ktlint_experimental = enabled
9498
ktlint_standard = enabled
@@ -156,11 +160,24 @@ Formatting projects in which ktlint is not used may result in a huge amount of f
156160
rm baseline.xml
157161
ktlint-dev --baseline=baseline.xml --relative # Do not call this command via the "./exec-in-each-project.sh" script as we want to use the one combined baseline.xml file for all projects.
158162
```
159-
No violations, except error that can not be autocorrected, should be expected.
160-
12. Rerun with *latest development* version and verify that no violations are reported:
163+
As the baseline is removed, thousands of violations are to be reported. Check at least in the summary that no internal errors are thrown like below:
164+
```plain
165+
Internal Error (...) in file '...' at position '0:0. Please create a ticket at https://github.com/pinterest/ktlint/issues ...
166+
```
167+
12. Rerun lint with *latest development* version and verify that no violations are reported:
161168
```shell
162169
ktlint-dev --baseline=baseline.xml --relative # Do not call this command via the "./exec-in-each-project.sh" script as we want one combined baseline.xml file for all projects.
163170
```
171+
No violations should be reported in this run.
172+
13. Rerun format with *latest development* version without baseline:
173+
```shell
174+
ktlint-dev -F --relative # Do not call this command via the "./exec-in-each-project.sh" script as we want to use the one combined baseline.xml file for all projects.
175+
```
176+
As the baseline is removed, thousands of violations are to be expected. Check at least in the summary that no internal errors are thrown like below:
177+
```plain
178+
Internal Error (...) in file '...' at position '0:0. Please create a ticket at https://github.com/pinterest/ktlint/issues ...
179+
```
180+
As the baseline is removed, thousands of violations are to be reported and/or autocorrected. Check at least in the summary that no internal errors are thrown like below:
164181
165182
## Checking documentation
166183
[The documentation for KtLint](https://pinterest.github.io/ktlint/) should be checked for dead links.

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=1.3.1-SNAPSHOT
1+
VERSION_NAME=1.3.1
22
POM_GROUP_ID=com.pinterest.ktlint
33

44
POM_DESCRIPTION=An anti-bikeshedding Kotlin linter with built-in formatter.

0 commit comments

Comments
 (0)