File tree 4 files changed +3
-14
lines changed
src/main/kotlin/sschr15/aocsolutions
4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,13 @@ plugins {
7
7
// oh, it's here
8
8
kotlin(" jvm" ) version " 2.1.0"
9
9
application
10
- id(" io.gitlab.arturbosch.detekt" ) version " 1.23.4"
11
10
}
12
11
13
12
group = " sschr15"
14
13
version = " 1.0-SNAPSHOT"
15
14
16
15
application {
17
- mainClass.set( " sschr15.aocsolutions.MainKt" )
16
+ mainClass = " sschr15.aocsolutions.MainKt"
18
17
}
19
18
20
19
java {
@@ -27,11 +26,6 @@ repositories {
27
26
mavenCentral()
28
27
}
29
28
30
- detekt {
31
- buildUponDefaultConfig = false
32
- config.from(" detekt-config.yml" )
33
- }
34
-
35
29
kotlin {
36
30
compilerOptions {
37
31
optIn.addAll(listOf ( // opting in works around KTIJ-22253 and makes code a slight bit cleaner
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
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
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ object Day5 : Challenge {
22
22
val lists: List <List <WatchedInt >> = inputLines[1 ].split(" \n " ).map { it.split(" ," ).ints() }
23
23
val updates = lists.partition { list ->
24
24
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) }
26
26
}.all { it != false }
27
27
}
28
28
invalid = updates.second
You can’t perform that action at this time.
0 commit comments