Skip to content

feat: add detekt task#35

Open
SmilingPixel wants to merge 1 commit into
mainfrom
fix/detekt_task_0719
Open

feat: add detekt task#35
SmilingPixel wants to merge 1 commit into
mainfrom
fix/detekt_task_0719

Conversation

@SmilingPixel

Copy link
Copy Markdown
Owner

This pull request introduces the Detekt static code analysis tool to the project, enhancing code quality checks for Kotlin code. The main changes involve configuring Detekt as a Gradle plugin, specifying source sets for analysis, and updating version management files.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces Detekt static analysis into the project’s Gradle build via the version catalog and applies/configures the Detekt plugin for the composeApp Kotlin Multiplatform module.

Changes:

  • Added Detekt version + plugin alias to the Gradle version catalog.
  • Registered the Detekt plugin at the root (apply false) and applied it in composeApp.
  • Configured Detekt to analyze the primary Kotlin source-set directories for composeApp.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
gradle/libs.versions.toml Adds Detekt version and plugin alias to the version catalog.
composeApp/build.gradle.kts Applies Detekt and configures the analyzed source directories for the KMP module.
build.gradle.kts Registers the Detekt plugin at the root for reuse in subprojects.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gradle/libs.versions.toml
kotlinx-coroutines = "1.10.2"
ktor = "3.3.3"
ktlintGradle = "14.2.0"
detekt = "1.23.8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants