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: CHANGES.md
+1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
11
11
12
12
## [Unreleased]
13
13
### Added
14
+
* Add option `editorConfigFile` for `ktLint`[#142](https://github.com/diffplug/spotless/issues/142)
14
15
* Added `skipLinesMatching` option to `licenseHeader` to support formats where license header cannot be immediately added to the top of the file (e.g. xml, sh). ([#1441](https://github.com/diffplug/spotless/pull/1441)).
15
16
### Fixed
16
17
* Support `ktlint` 0.48+ new rule disabling syntax ([#1456](https://github.com/diffplug/spotless/pull/1456)) fixes ([#1444](https://github.com/diffplug/spotless/issues/1444))
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot31Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot31Dot0Adapter.java
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 DiffPlug
2
+
* Copyright 2022-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
*/
16
16
packagecom.diffplug.spotless.glue.ktlint.compat;
17
17
18
+
importjava.nio.file.Path;
18
19
importjava.util.ArrayList;
19
20
importjava.util.List;
20
21
importjava.util.Map;
@@ -41,9 +42,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot32Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot32Dot0Adapter.java
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 DiffPlug
2
+
* Copyright 2022-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
*/
16
16
packagecom.diffplug.spotless.glue.ktlint.compat;
17
17
18
+
importjava.nio.file.Path;
18
19
importjava.util.ArrayList;
19
20
importjava.util.List;
20
21
importjava.util.Map;
@@ -41,9 +42,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot34Dot2/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot34Dot2Adapter.java
+6-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 DiffPlug
2
+
* Copyright 2022-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
*/
16
16
packagecom.diffplug.spotless.glue.ktlint.compat;
17
17
18
+
importjava.nio.file.Path;
18
19
importjava.util.ArrayList;
19
20
importjava.util.List;
20
21
importjava.util.Map;
@@ -41,9 +42,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot45Dot2/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot45Dot2Adapter.java
+6-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 DiffPlug
2
+
* Copyright 2022-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
*/
16
16
packagecom.diffplug.spotless.glue.ktlint.compat;
17
17
18
+
importjava.nio.file.Path;
18
19
importjava.util.ArrayList;
19
20
importjava.util.Arrays;
20
21
importjava.util.List;
@@ -49,9 +50,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot46Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot46Dot0Adapter.java
+6-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 DiffPlug
2
+
* Copyright 2022-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
*/
16
16
packagecom.diffplug.spotless.glue.ktlint.compat;
17
17
18
+
importjava.nio.file.Path;
18
19
importjava.util.ArrayList;
19
20
importjava.util.Arrays;
20
21
importjava.util.List;
@@ -49,9 +50,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot47Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot47Dot0Adapter.java
+15-6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 DiffPlug
2
+
* Copyright 2022-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -17,6 +17,8 @@
17
17
18
18
importstaticjava.util.Collections.emptySet;
19
19
20
+
importjava.nio.file.Files;
21
+
importjava.nio.file.Path;
20
22
importjava.util.ArrayList;
21
23
importjava.util.LinkedHashSet;
22
24
importjava.util.List;
@@ -54,9 +56,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
Copy file name to clipboardExpand all lines: lib/src/compatKtLint0Dot48Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot48Dot0Adapter.java
+15-12
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@
15
15
*/
16
16
packagecom.diffplug.spotless.glue.ktlint.compat;
17
17
18
+
importjava.nio.file.Files;
19
+
importjava.nio.file.Path;
18
20
importjava.util.ArrayList;
19
21
importjava.util.Collections;
20
22
importjava.util.LinkedHashSet;
@@ -25,7 +27,7 @@
25
27
importjava.util.stream.Collectors;
26
28
importjava.util.stream.Stream;
27
29
28
-
importcom.pinterest.ktlint.core.KtLint;
30
+
importcom.pinterest.ktlint.core.KtLintRuleEngine;
29
31
importcom.pinterest.ktlint.core.LintError;
30
32
importcom.pinterest.ktlint.core.Rule;
31
33
importcom.pinterest.ktlint.core.RuleProvider;
@@ -76,9 +78,9 @@ public Unit invoke(LintError lint, Boolean corrected) {
0 commit comments