Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
:kotlin-sdk:compileKotlinJvm \
:integration-test:compileKotlinJvm \
:conformance-test:testClasses \
detekt \
-Pkotlin.incremental=false \
--no-daemon --stacktrace --rerun-tasks

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ build/
.idea/compiler.xml
.idea/libraries/
.idea
!.idea/icon.png
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/
!.idea/icon.png
!.idea/detekt.xml
!.idea/externalDependencies.xml

### Kotlin ###
.kotlin
Expand Down
14 changes: 14 additions & 0 deletions .idea/detekt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/externalDependencies.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/ktlint-plugin.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import dev.detekt.gradle.extensions.FailOnSeverity

plugins {
id("mcp.dokka")
alias(libs.plugins.detekt)
alias(libs.plugins.ktlint)
alias(libs.plugins.kover)
}
Expand All @@ -18,6 +21,13 @@ dependencies {
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "org.jetbrains.kotlinx.kover")
apply(plugin = "dev.detekt")

detekt {
config = files("$rootDir/detekt.yml")
buildUponDefaultConfig = true
failOnSeverity.set(FailOnSeverity.Never)
}
}

dokka {
Expand Down
9 changes: 9 additions & 0 deletions buildSrc/src/main/kotlin/mcp.multiplatform.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,12 @@ kotlin {
explicitApi = ExplicitApiMode.Strict
jvmToolchain(21)
}

tasks.named("detekt").configure {
dependsOn(
"detektMainJvm",
"detektCommonMainSourceSet",
"detektTestJvm",
"detektCommonTestSourceSet",
)
}
7 changes: 7 additions & 0 deletions detekt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
config:
validation: true
warningsAsErrors: true

complexity:
LongMethod:
excludes: ['**Test.kt']
12 changes: 7 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[versions]
# plugins version
kotlin = "2.2.21"
dokka = "2.1.0"
atomicfu = "0.29.0"
ktlint = "14.0.1"
binaryCompatibilityValidatorPlugin = "0.18.1"
detekt = "2.0.0-alpha.1"
dokka = "2.1.0"
kotlin = "2.2.21"
kover = "0.9.4"
netty = "4.2.9.Final"
ktlint = "14.0.1"
mavenPublish = "0.35.0"
binaryCompatibilityValidatorPlugin = "0.18.1"
netty = "4.2.9.Final"
openapi-generator = "7.18.0"

# libraries version
Expand Down Expand Up @@ -69,6 +70,7 @@ ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio", version.ref = "
ktor-server-cio = { group = "io.ktor", name = "ktor-server-cio", version.ref = "ktor" }

[plugins]
detekt = { id = "dev.detekt", version.ref = "detekt" }
kotlinx-binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binaryCompatibilityValidatorPlugin" }
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
Expand Down
Loading