You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,32 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](https://semver.org/).
4
4
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
+
5
31
## [1.3.0] - 2024-06-04
6
32
7
33
### 🆕 Features
@@ -2469,6 +2495,7 @@ set in `[*{kt,kts}]` section).
Copy file name to clipboardExpand all lines: RELEASE_TESTING.MD
+25-8
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Before releasing a new version of KtLint, the release candidate is tested on a s
40
40
```
41
41
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):
42
42
```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
44
44
```
45
45
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.
46
46
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
79
79
1. Define `.editorconfig` in the integration test directory with content below. Also follow up the instructions mentioned:
80
80
```editorconfig
81
81
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
+
82
90
[*.{kt,kts}]
83
91
# The open source projects that are used for release testing of ktlint contain a few '.editorconfig' files which need to
84
92
# be changed:
85
93
# 1) Disable the "root = true" property so that each project ultimately falls back on this file. In this way offending
86
94
# 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
92
96
ktlint_code_style = ktlint_official
93
97
ktlint_experimental = enabled
94
98
ktlint_standard = enabled
@@ -156,11 +160,24 @@ Formatting projects in which ktlint is not used may result in a huge amount of f
156
160
rm baseline.xml
157
161
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.
158
162
```
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:
161
168
```shell
162
169
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.
163
170
```
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:
164
181
165
182
## Checking documentation
166
183
[The documentation for KtLint](https://pinterest.github.io/ktlint/) should be checked for dead links.
0 commit comments