[PR #612] [CLOSED] feat(formatter): Add detekt as Kotlin formatter #9661

Closed
opened 2026-02-16 18:13:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/612
Author: @MarcelBochtler
Created: 7/2/2025
Status: Closed

Base: devHead: formatter-detekt


📝 Commits (1)

  • 4a29e66 feat(formatter): Add detekt as Kotlin formatter

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 packages/opencode/src/format/formatter.ts (+9 -0)

📄 Description

detekt 1 can be used as a wrapper for ktlint 2. When using detekt as a formatter, the ktlint CLI is not required and might not be installed. To offer formatting in this case, define detekt --auto-format as formatter for Kotlin source files.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/612 **Author:** [@MarcelBochtler](https://github.com/MarcelBochtler) **Created:** 7/2/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `formatter-detekt` --- ### 📝 Commits (1) - [`4a29e66`](https://github.com/anomalyco/opencode/commit/4a29e660b212c00af2c2384956e04d7efe9b6973) feat(formatter): Add detekt as Kotlin formatter ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/format/formatter.ts` (+9 -0) </details> ### 📄 Description detekt [1] can be used as a wrapper for ktlint [2]. When using detekt as a formatter, the ktlint CLI is not required and might not be installed. To offer formatting in this case, define `detekt --auto-format` as formatter for Kotlin source files. [1]: https://detekt.dev [2]: https://detekt.dev/docs/rules/formatting --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:56 -05:00
yindo closed this issue 2026-02-16 18:13:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9661