Skip to content

Commit 06d09e8

Browse files
committed
Fix Detekt debt.
1 parent 0b6f83b commit 06d09e8

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

aockt-test/src/main/kotlin/AocKtExtension.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class AocKtExtension(
6262
internal companion object Key : CoroutineContext.Key<AocKtExtension>
6363
}
6464

65+
/** Configures which inputs the tests will run on. */
6566
public enum class ExecMode {
6667
/** Run both tests and the user input, if available. */
6768
All,

aockt-test/src/main/kotlin/internal/TestData.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ internal value class PuzzleInput(private val input: String): CharSequence by inp
7676
override fun toString(): String = input
7777

7878
/** Formats the input in a printable friendly manner. */
79+
@Suppress("MagicNumber")
7980
fun preview(): String = when(input.count { it == '\n' }) {
8081
0 -> input
8182
in 1 .. 5 -> "\n$input\n"

gradle/detekt/baseline/aockt-test.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
<SmellBaseline>
33
<ManuallySuppressedIssues/>
44
<CurrentIssues>
5-
<ID>MagicNumber:TestData.kt$PuzzleInput$3</ID>
6-
<ID>MagicNumber:TestData.kt$PuzzleInput$5</ID>
7-
<ID>UndocumentedPublicClass:AocKtExtension.kt$ExecMode</ID>
85
</CurrentIssues>
96
</SmellBaseline>

0 commit comments

Comments
 (0)