GeezerVison is showing github.com — Bump Ktlint to 1.7.1 by Goooler · Pull Request #2555 · diffplug/spotless
Bump Ktlint to 1.7.1
#2555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Uh oh!
There was an error while loading. Please reload this page.
Show file tree
Hide file tree
Changes from all commits
Commits
File filter
Filter by extension
.java
(3)
.json5
(1)
.md
(5)
All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Hide whitespace
Diff view
Hide whitespace
There are no files selected for viewing
Original file line number
Diff line number
Diff line change
Expand Up
@@ -3,13 +3,4 @@
"extends": [
"config:recommended",
],
"packageRules": [
{
"groupName": "Ktlint",
"enabled": false,
"matchPackageNames": [
"/com.pinterest.ktlint:*/",
]
}
]
}
Original file line number
Diff line number
Diff line change
Expand Up
@@ -15,6 +15,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
* Bump JGit from `6.10.1` to `7.3.0` ([#2257](https://github.com/diffplug/spotless/pull/2257))
* Adds support for worktrees (fixes [#1765](https://github.com/diffplug/spotless/issues/1765))
* Bump default `google-java-format` version to latest `1.24.0` -> `1.28.0`. ([#2345](https://github.com/diffplug/spotless/pull/2345))
* Bump default `ktlint` version to latest `1.5.0` -> `1.7.1`. ([#2555](https://github.com/diffplug/spotless/pull/2555))
## [3.3.1] - 2025-07-21
### Fixed
Expand Down
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2024 DiffPlug
* Copyright 2016-2025 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Expand Up
@@ -36,14 +36,13 @@
/** Wraps up <a href="https://github.com/pinterest/ktlint">ktlint</a> as a FormatterStep. */
public class KtLintStep implements Serializable {
private static final long serialVersionUID = 1L;
private static final String DEFAULT_VERSION = "1.5.0 ";
private static final String DEFAULT_VERSION = "1.7.1 ";
private static final String NAME = "ktlint";
private static final String MAVEN_COORDINATE_0_DOT = "com.pinterest:ktlint:";
private static final String MAVEN_COORDINATE_1_DOT = "com.pinterest.ktlint:ktlint-cli:";
private final JarState.Promised jarState;
@Nullable
private final FileSignature.Promised config;
@Nullable private final FileSignature.Promised config;
private final Map<String, Object> editorConfigOverride;
private final String version;
Expand Down
Expand Up
@@ -95,8 +94,7 @@ private static final class State implements Serializable {
private final JarState jarState;
private final TreeMap<String, Object> editorConfigOverride;
private final String version;
@Nullable
private final FileSignature editorConfigPath;
@Nullable private final FileSignature editorConfigPath;
State(String version,
JarState jarState,
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -8,6 +8,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
* Bump JGit from `6.10.1` to `7.3.0` ([#2257](https://github.com/diffplug/spotless/pull/2257))
* Adds support for worktrees (fixes [#1765](https://github.com/diffplug/spotless/issues/1765))
* Bump default `google-java-format` version to latest `1.24.0` -> `1.28.0`. ([#2345](https://github.com/diffplug/spotless/pull/2345))
* Bump default `ktlint` version to latest `1.5.0` -> `1.7.1`. ([#2555](https://github.com/diffplug/spotless/pull/2555))
## [7.2.1] - 2025-07-21
### Fixed
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -548,7 +548,7 @@ spotless {
)
.customRuleSets(
listOf(
"io.nlopez.compose.rules:ktlint:0.4.16 "
"io.nlopez.compose.rules:ktlint:0.4.25 "
)
)
}
Expand Down
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2024 DiffPlug
* Copyright 2016-2025 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Expand Up
@@ -178,7 +178,7 @@ void withCustomRuleSetApply() throws IOException {
" kotlin {",
" ktlint(\"1.0.1\")",
" .customRuleSets(listOf(",
" \"io.nlopez.compose.rules:ktlint:0.4.16 \"",
" \"io.nlopez.compose.rules:ktlint:0.4.25 \"",
" ))",
" .editorConfigOverride(mapOf(",
" \"ktlint_function_naming_ignore_when_annotated_with\" to \"Composable\"",
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -8,6 +8,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
* Bump JGit from `6.10.1` to `7.3.0` ([#2257](https://github.com/diffplug/spotless/pull/2257))
* Adds support for worktrees (fixes [#1765](https://github.com/diffplug/spotless/issues/1765))
* Bump default `google-java-format` version to latest `1.24.0` -> `1.28.0`. ([#2345](https://github.com/diffplug/spotless/pull/2345))
* Bump default `ktlint` version to latest `1.5.0` -> `1.7.1`. ([#2555](https://github.com/diffplug/spotless/pull/2555))
## [2.46.1] - 2025-07-21
### Fixed
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -499,7 +499,7 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.
<ktlint_code_style>intellij_idea</ktlint_code_style>
</editorConfigOverride>
<customRuleSets> <!-- optional -->
<value>io.nlopez.compose.rules:ktlint:0.4.16 </value>
<value>io.nlopez.compose.rules:ktlint:0.4.25 </value>
</customRuleSets>
</ktlint>
```
Expand Down
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2024 DiffPlug
* Copyright 2016-2025 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Expand Up
@@ -80,7 +80,7 @@ void testSetEditorConfigCanOverrideEditorConfigFile() throws Exception {
void testWithCustomRuleSetApply() throws Exception {
writePomWithKotlinSteps("<ktlint>\n" +
" <customRuleSets>\n" +
" <value>io.nlopez.compose.rules:ktlint:0.4.16 </value>\n" +
" <value>io.nlopez.compose.rules:ktlint:0.4.25 </value>\n" +
" </customRuleSets>\n" +
" <editorConfigOverride>\n" +
" <ktlint_function_naming_ignore_when_annotated_with>Composable</ktlint_function_naming_ignore_when_annotated_with>\n" +
Expand Down
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.