{"id":31847959,"url":"https://github.com/wireapp/wire-detekt-rules","last_synced_at":"2026-07-20T17:31:21.141Z","repository":{"id":85505691,"uuid":"584445255","full_name":"wireapp/wire-detekt-rules","owner":"wireapp","description":"This repository collects Detekt custom rules and configuration for Wire's Style Guide.","archived":false,"fork":false,"pushed_at":"2026-05-05T15:16:40.000Z","size":360,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-05-05T16:35:17.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wireapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-02T15:34:25.000Z","updated_at":"2026-05-05T15:17:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4e5ffd9-9e54-4171-b38c-d4f2f26a0e0e","html_url":"https://github.com/wireapp/wire-detekt-rules","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/wireapp/wire-detekt-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fwire-detekt-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fwire-detekt-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fwire-detekt-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fwire-detekt-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wireapp","download_url":"https://codeload.github.com/wireapp/wire-detekt-rules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fwire-detekt-rules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35695243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-10-12T09:58:47.352Z","updated_at":"2026-07-20T17:31:21.113Z","avatar_url":"https://github.com/wireapp.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wire™\n\n[![Wire logo](https://github.com/wireapp/wire/blob/master/assets/header-small.png?raw=true)](https://wire.com/jobs/)\n\nThis repository is part of the source code of Wire. You can find more information at [wire.com](https://wire.com) or by\ncontacting opensource@wire.com.\n\nYou can find the published source code at [github.com/wireapp/wire](https://github.com/wireapp/wire), and the apk of the\nlatest release at [https://wire.com/en/download/](https://wire.com/en/download/).\n\nFor licensing information, see the attached LICENSE file and the list of third-party licenses\nat [wire.com/legal/licenses/](https://wire.com/legal/licenses/).\n\nIf you compile the open source software that we make available from time to time to develop your own mobile, desktop or\nweb application, and cause that application to connect to our servers for any purposes, we refer to that resulting\napplication as an “Open Source App”. All Open Source Apps are subject to, and may only be used and/or commercialized in\naccordance with, the Terms of Use applicable to the Wire Application, which can be found\nat https://wire.com/legal/#terms. Additionally, if you choose to build an Open Source App, certain restrictions apply,\nas follows:\n\na. You agree not to change the way the Open Source App connects and interacts with our servers; b. You agree not to\nweaken any of the security features of the Open Source App; c. You agree not to use our servers to store data for\npurposes other than the intended and original functionality of the Open Source App; d. You acknowledge that you are\nsolely responsible for any and all updates to your Open Source App.\n\nFor clarity, if you compile the open source software that we make available from time to time to develop your own\nmobile, desktop or web application, and do not cause that application to connect to our servers for any purposes, then\nthat application will not be deemed an Open Source App and the foregoing will not apply to that application.\n\nNo license is granted to the Wire trademark and its associated logos, all of which will continue to be owned exclusively\nby Wire Swiss GmbH. Any use of the Wire trademark and/or its associated logos is expressly prohibited without the\nexpress prior written consent of Wire Swiss GmbH.\n\n# Wire Detekt Rules\n\n## Adding To Your Project\n\nFirst, make sure to add Detekt to your project:\n\n```kotlin\nplugins {\n    id(\"io.gitlab.arturbosch.detekt\").version(\"1.23.6\")\n}\n```\n\nThen to add these set of rules, you have 2 options depending on your needs and level of automation you need:\n\n## Option 1:\n\n1. Copy the jar file (`dist/detekt-rules-1.0.0-SNAPSHOT.jar`) from this repository.\n2. In your project folder, create a `detekt` folder and paste the jar file there.\n3. Navigate to the `build.gradle.kts` file where you configured detekt, and add the jar file as dependency:\n\n```kotlin\ndependencies {\n    detektPlugins(files(\"$rootDir/detekt/detekt-rules-1.0.0-SNAPSHOT.jar\"))\n}\n```\n\n## Option 2:\n\n1. In your project's `build.gradle.kts` file, configure a new Ivy repository (with this you can just point to a plain\n   jar file and simulate a package artifactory), you can do it by just copy-pasting the following snippet:\n\nTypically, your root `build.gradle.kts`\n\n```kotlin\nrepositories {\n    val repo = ivy(\"https://raw.githubusercontent.com/wireapp/wire-detekt-rules/main/dist\") {\n        patternLayout {\n            artifact(\"/[module]-[revision].[ext]\")\n        }\n        metadataSources.artifact()\n    }\n    exclusiveContent {\n        forRepositories(repo)\n        filter {\n            includeModule(\"com.wire\", \"detekt-rules\")\n        }\n    }\n}\n```\n\n2. Add the detektPlugin as follows, since we have a regular artifact dependency, we can use gradle artifact coordinates:\n\n```\ndependencies {\n    detektPlugins(\"com.wire:detekt-rules:1.0.0-SNAPSHOT\")\n}\n```\n\n3. Tell gradle that this ivy managed artifact is a dynamic one (aka. SNAPSHOT). So we can configure it to always get the\n   latest artifact. Gradle by default, on SNAPSHOT maven artifacts caches versions\n   for [24 hours](https://docs.gradle.org/current/userguide/dynamic_versions.html#sec:controlling_dependency_caching_programmatically):\n\nAdd this parameter to enforce SNAPSHOT default behavior like a regular m2 artifact.\n\n```kotlin\ndependencies {\n    detektPlugins(\"com.wire:detekt-rules:1.0.0-1.23.6\") {\n        isChanging = true // tells gradle that this is a dynamic version, will try to get a new one using default gradle cache behavior.\n    }\n}\n```\n\n## Development workflow and local testing\n\nWhen you are adding new rules to the project RuleSet, you can use the `./gradlew publishToMavenLocal` command to run the\nproject locally and test your changes.\nYou just need to declare `mavenLocal()` as a repository in your project's `build.gradle.kts` file:\n\n```kotlin\nrepositories {\n    mavenLocal()\n    // other repositories omitted\n}\n```\n\n## Reference documentation\n- How to write custom [click here](https://detekt.github.io/detekt/extensions.html).\n- Kotlin classes for reflection inspection [click here](https://github.com/JetBrains/kotlin/tree/master/compiler/psi/src/org/jetbrains/kotlin/psi)\n- Usage of this RuleSet in Kalium [click here](https://github.com/wireapp/kalium/blob/develop/detekt/detekt.yml#L635)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwireapp%2Fwire-detekt-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwireapp%2Fwire-detekt-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwireapp%2Fwire-detekt-rules/lists"}