[PR #11632] feat(formatter): add scalafmt support for Scala files #13869

Open
opened 2026-02-16 18:18:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11632

State: open
Merged: No


Summary

  • Add scalafmt formatter with support for .scala, .sbt, and .sc file extensions
  • Formatter is enabled when scalafmt command is available and .scalafmt.conf config file exists
  • Updated formatter documentation to include scalafmt

Changes

  • Added scalafmt formatter definition in packages/opencode/src/format/formatter.ts
  • Updated formatter documentation table in packages/web/src/content/docs/formatters.mdx

Testing

The formatter follows the same pattern as other config-based formatters (ocamlformat, clang-format) and will automatically activate when both the command and config file are present.

Closes #11635

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11632 **State:** open **Merged:** No --- ## Summary - Add scalafmt formatter with support for .scala, .sbt, and .sc file extensions - Formatter is enabled when scalafmt command is available and .scalafmt.conf config file exists - Updated formatter documentation to include scalafmt ## Changes - Added scalafmt formatter definition in `packages/opencode/src/format/formatter.ts` - Updated formatter documentation table in `packages/web/src/content/docs/formatters.mdx` ## Testing The formatter follows the same pattern as other config-based formatters (ocamlformat, clang-format) and will automatically activate when both the command and config file are present. Closes #11635
yindo added the pull-request label 2026-02-16 18:18:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13869