{"id":13609118,"url":"https://github.com/detekt/detekt-compiler-plugin","last_synced_at":"2025-04-12T19:33:12.037Z","repository":{"id":39855118,"uuid":"231233909","full_name":"detekt/detekt-compiler-plugin","owner":"detekt","description":"Experimental support for detekt as a Kotlin compiler plugin","archived":true,"fork":false,"pushed_at":"2023-02-02T23:28:45.000Z","size":434,"stargazers_count":55,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-10T03:33:07.214Z","etag":null,"topics":["compilers","detekt","detekt-plugin","gradle","gradle-plugin","hacktoberfest","kotlin","kotlin-compiler","kotlin-compiler-plugin","linter","linters","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/detekt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"arturbosch"}},"created_at":"2020-01-01T15:42:58.000Z","updated_at":"2025-03-30T00:46:21.000Z","dependencies_parsed_at":"2023-02-16T00:00:39.708Z","dependency_job_id":null,"html_url":"https://github.com/detekt/detekt-compiler-plugin","commit_stats":{"total_commits":68,"total_committers":5,"mean_commits":13.6,"dds":0.5147058823529411,"last_synced_commit":"55e4e6ad9edbf102dbc9d87b8ffc05d8375ecbad"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detekt%2Fdetekt-compiler-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detekt%2Fdetekt-compiler-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detekt%2Fdetekt-compiler-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detekt%2Fdetekt-compiler-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/detekt","download_url":"https://codeload.github.com/detekt/detekt-compiler-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248621451,"owners_count":21134856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compilers","detekt","detekt-plugin","gradle","gradle-plugin","hacktoberfest","kotlin","kotlin-compiler","kotlin-compiler-plugin","linter","linters","static-analysis"],"created_at":"2024-08-01T19:01:32.611Z","updated_at":"2025-04-12T19:33:12.007Z","avatar_url":"https://github.com/detekt.png","language":"Kotlin","funding_links":["https://github.com/sponsors/arturbosch"],"categories":["Kotlin"],"sub_categories":[],"readme":"# Detekt Compiler Plugin\n\n![Pre Merge Checks](https://github.com/detekt/detekt-compiler-plugin/workflows/Pre%20Merge%20Checks/badge.svg)\n[![gradle plugin](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/io/github/detekt/gradle/compiler-plugin/io.github.detekt.gradle.compiler-plugin.gradle.plugin/maven-metadata.xml.svg?label=Gradle\u0026style=flat-square)](https://plugins.gradle.org/plugin/io.github.detekt.gradle.compiler-plugin)\n\n⚠️ This repository is archived as the development of the `detekt-compiler-plugin` has been moved to the [detekt repo](https://github.com/detekt/detekt/tree/main/detekt-compiler-plugin) ⚠️\n\nExperimental support for integrating detekt as a Kotlin compiler plugin\n\n![image](docs/detekt-compiler-plugin.png \"image\")\n\n### Usage\n\n```kotlin\nplugins {\n    id(\"io.github.detekt.gradle.compiler-plugin\") version \"0.4.0\"\n}\n\ndetekt {\n    isEnabled = true // or with a property: System.getProperty(\"runDetekt\") != null\n    // everything from https://detekt.github.io/detekt/kotlindsl.html#options-for-detekt-configuration-closure\n    // is supported to declare, only some options are used. See limitations. \n}\n```\n\ndetekt plugins can be added to your project using the `detektPlugins` configuration:\n\n```kotlin\ndependencies {\n    detektPlugins(\"io.gitlab.arturbosch.detekt:detekt-formatting:\u003cversion\u003e\")\n}\n```\n\nReports can be customized using the `detekt` extension which is added to `KotlinCompile` tasks. Using Groovy this might\nlook like:\n\n```groovy\ntasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {\n    detekt {\n        reports {\n            xml.enabled.set(true)\n            txt.enabled.set(false)\n            create(\"custom\") {\n                enabled.set(false)\n            }\n        }\n    }\n}\n```\n\n### Limitations\n\nEverything our Gradle plugin (`DetektExtension`) supports, is also supported on the declaration side with this plugin.  \nHowever only the following options are implemented/passed down to detekt:\n- config\n- baseline\n- debug\n- buildUponDefaultConfig\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetekt%2Fdetekt-compiler-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdetekt%2Fdetekt-compiler-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetekt%2Fdetekt-compiler-plugin/lists"}