Skip to content

Commit a940ba8

Browse files
committed
Random unrelated changes
1 parent 50aea9e commit a940ba8

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

build.gradle.kts

+1-7
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ plugins {
77
// oh, it's here
88
kotlin("jvm") version "2.1.0"
99
application
10-
id("io.gitlab.arturbosch.detekt") version "1.23.4"
1110
}
1211

1312
group = "sschr15"
1413
version = "1.0-SNAPSHOT"
1514

1615
application {
17-
mainClass.set("sschr15.aocsolutions.MainKt")
16+
mainClass = "sschr15.aocsolutions.MainKt"
1817
}
1918

2019
java {
@@ -27,11 +26,6 @@ repositories {
2726
mavenCentral()
2827
}
2928

30-
detekt {
31-
buildUponDefaultConfig = false
32-
config.from("detekt-config.yml")
33-
}
34-
3529
kotlin {
3630
compilerOptions {
3731
optIn.addAll(listOf( // opting in works around KTIJ-22253 and makes code a slight bit cleaner

detekt-config.yml

-5
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/kotlin/sschr15/aocsolutions/Day5.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object Day5 : Challenge {
2222
val lists: List<List<WatchedInt>> = inputLines[1].split("\n").map { it.split(",").ints() }
2323
val updates = lists.partition { list ->
2424
list.mapIndexed { i, pg ->
25-
requirements[pg]?.all { prio -> prio !in list.subList(i, list.size) }
25+
requirements[pg]?.none { prio -> prio in list.subList(i, list.size) }
2626
}.all { it != false }
2727
}
2828
invalid = updates.second

0 commit comments

Comments
 (0)