Skip to content

Commit

Permalink
Bump spotless til 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hestad committed Jan 7, 2025
1 parent f0a6633 commit e71bfee
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ indent_size=4
insert_final_newline=true
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ktlint_standard_function-signature = disabled
ktlint_standard_function-expression-body = disabled
3 changes: 2 additions & 1 deletion auth-core/test/MicrosoftEntraIdTokenServiceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ private enum class TestSystembrukerrolle : GenerellSystembrukerrolle {

private data class TestSystembrukerroller(
override val value: Set<TestSystembrukerrolle>,
) : GenerellSystembrukerroller<TestSystembrukerrolle>, Set<TestSystembrukerrolle> by value {
) : GenerellSystembrukerroller<TestSystembrukerrolle>,
Set<TestSystembrukerrolle> by value {

constructor(vararg roller: TestSystembrukerrolle) : this(roller.toSet())
constructor(roller: Collection<TestSystembrukerrolle>) : this(roller.toSet())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ enum class TestSystembrukerrolle : GenerellSystembrukerrolle {

data class TestSystembrukerroller(
override val value: Set<TestSystembrukerrolle>,
) : GenerellSystembrukerroller<TestSystembrukerrolle>, Set<TestSystembrukerrolle> by value {
) : GenerellSystembrukerroller<TestSystembrukerrolle>,
Set<TestSystembrukerrolle> by value {

constructor(vararg roller: TestSystembrukerrolle) : this(roller.toSet())
constructor(roller: Collection<TestSystembrukerrolle>) : this(roller.toSet())
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
kotlin("jvm") version "2.1.0"
`maven-publish`
`java-library`
id("com.diffplug.spotless") version "6.25.0"
id("com.diffplug.spotless") version "7.0.0"
}

allprojects {
Expand Down Expand Up @@ -41,6 +41,8 @@ subprojects {
.editorConfigOverride(
mapOf(
"ktlint_standard_max-line-length" to "off",
"ktlint_standard_function-signature" to "disabled",
"ktlint_standard_function-expression-body" to "disabled",
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package no.nav.tiltakspenger.libs.common

data class Saksbehandlerroller(
override val value: Set<Saksbehandlerrolle>,
) : Roller<Saksbehandlerrolle>, Set<Saksbehandlerrolle> by value {
) : Roller<Saksbehandlerrolle>,
Set<Saksbehandlerrolle> by value {

constructor(vararg roller: Saksbehandlerrolle) : this(roller.toSet())
constructor(roller: Collection<Saksbehandlerrolle>) : this(roller.toSet())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ internal class PostgresTransactionContextTest {

@Test
fun rollback() {
PostgresSessionContext(dataSource, sessionCounter).withSession {
session ->
PostgresSessionContext(dataSource, sessionCounter).withSession { session ->
session.run(
queryOf("create table rollback (test varchar not null)").asExecute,
)
Expand Down

0 comments on commit e71bfee

Please sign in to comment.