Skip to content

Commit

Permalink
♻️ Ignorer linting failures på build
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Havstein Eriksen <[email protected]>
  • Loading branch information
chsko and havstein committed Apr 4, 2024
1 parent 8bb947d commit c59a2f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 49 deletions.
19 changes: 10 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jlleitschuh.gradle.ktlint")

ktlint {
ignoreFailures = true
// Hvis du gjør endringer i disse filterne må du slette alle "build"/"out"-mappene og deretter
// kjøre ./gradlew --no-build-cache ktlintCheck minst én gang for at endringene skal ta effekt
filter {
exclude { it.file.path.contains("generated") }
exclude { it.file.path.contains("test") }
}
}

dependencies {
implementation("com.github.navikt:rapids-and-rivers:$rapidsAndRiversVersion")
implementation("io.ktor:ktor-server-cio:$ktorVersion")
Expand Down Expand Up @@ -89,15 +99,6 @@ allprojects {
}
testImplementation("io.mockk:mockk:$mockkVersion")
}

ktlint {
// Hvis du gjør endringer i disse filterne må du slette alle "build"/"out"-mappene og deretter
// kjøre ./gradlew --no-build-cache ktlintCheck minst én gang for at endringene skal ta effekt
filter {
exclude { it.file.path.contains("generated") }
exclude { it.file.path.contains("test") }
}
}
}

subprojects {
Expand Down
40 changes: 0 additions & 40 deletions scripts/pre-commit

This file was deleted.

0 comments on commit c59a2f8

Please sign in to comment.