Skip to content

Commit 2553230

Browse files
authored
Add .editorconfig to force newlines at file ends (#4584)
1 parent c4c592b commit 2553230

File tree

92 files changed

+99
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+99
-91
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[**.{kt,kts,properties}]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
indent_style = space
8+
indent_size = 4

benchmarks/src/jmh/kotlin/benchmarks/SequentialSemaphoreBenchmark.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ open class SequentialSemaphoreAsMutexBenchmark {
3636

3737
fun main() = SequentialSemaphoreAsMutexBenchmark().benchmark()
3838

39-
private val N = 1_000_000
39+
private val N = 1_000_000

kotlinx-coroutines-core/common/src/internal/NamedDispatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ internal class NamedDispatcher(
2222
override fun toString(): String {
2323
return name
2424
}
25-
}
25+
}

kotlinx-coroutines-core/common/test/CancellableContinuationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ class CancellableContinuationTest : TestBase() {
145145
}
146146
assertEquals(1, i)
147147
}
148-
}
148+
}

kotlinx-coroutines-core/common/test/DispatchedContinuationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ class DispatchedContinuationTest : TestBase() {
7272
yield() // to the launched job
7373
finish(8)
7474
}
75-
}
75+
}

kotlinx-coroutines-core/common/test/FailedJobTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ class FailedJobTest : TestBase() {
5454
assertTrue(!job.isActive)
5555
assertTrue(job.isCancelled)
5656
}
57-
}
57+
}

kotlinx-coroutines-core/common/test/ImmediateYieldTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ class ImmediateYieldTest : TestBase() {
5151
}
5252
finish(2)
5353
}
54-
}
54+
}

kotlinx-coroutines-core/common/test/UnconfinedCancellationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ class UnconfinedCancellationTest : TestBase() {
9696
}.join()
9797
finish(2)
9898
}
99-
}
99+
}

kotlinx-coroutines-core/common/test/flow/operators/AsFlowTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ class AsFlowTest : TestBase() {
3131

3232
assertIsNot<SharedFlow<Int>>(flow)
3333
}
34-
}
34+
}

kotlinx-coroutines-core/common/test/flow/operators/BufferConflationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ class BufferConflationTest : TestBase() {
140140
buffer(8, onBufferOverflow = BufferOverflow.DROP_LATEST)
141141
.buffer(3, BufferOverflow.DROP_OLDEST)
142142
}
143-
}
143+
}

0 commit comments

Comments
 (0)