Skip to content

Rename scalafmt.conf to .scalafmt.conf - #317

Merged
em3s merged 1 commit into
mainfrom
refactor/scalafmt-conf-dotfile
May 11, 2026
Merged

em3s merged 1 commit into
mainfrom
refactor/scalafmt-conf-dotfile

Conversation

@em3s

@em3s em3s commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Rename scalafmt.conf → .scalafmt.conf to match the scalafmt community convention. The scalafmt CLI and IDE plugins auto-discover the dotfile name, so this aligns spotless, IntelliJ, and the CLI on a single source of truth.

Closes #

Changes

  • Rename scalafmt.conf → .scalafmt.conf (contents unchanged).
  • Update GenerateCodeStyleTask.scalaFmtConfig to point at the new path. The KDoc on the class already advertised .scalafmt.conf; only the path literal was out of step.

How to Test

  • ./gradlew spotlessCheck reports no formatting drift.
  • ./gradlew generateCodeStyle regenerates .scalafmt.conf at the repo root (not scalafmt.conf).
  • grep -rn 'scalafmt\.conf' in the repo returns no remaining references to the old path.

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (Opus 4.7)

The scalafmt community convention (and what the scalafmt CLI and IDE
plugins auto-discover) is the dotfile name `.scalafmt.conf`. Spotless
previously read from `scalafmt.conf` via
`GenerateCodeStyleTask.scalaFmtConfig`, but external tooling pointing at
the repo root could not find it. Renaming keeps a single source of truth
that spotless, IntelliJ, and the scalafmt CLI all agree on.

The KDoc on this class already advertised `.scalafmt.conf` — only the
path literal was out of step.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. maintenance Maintenance work. labels May 11, 2026
@em3s
em3s merged commit 551fbf5 into main May 11, 2026
3 checks passed
@em3s
em3s deleted the refactor/scalafmt-conf-dotfile branch May 11, 2026 13:46
@em3s em3s self-assigned this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance work. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant