Skip to content

chore: configure scalafix OrganizeImports and compile sources as UTF-8 - #86

Merged
JNK234 merged 1 commit into
mainfrom
chore/scalafix-organize-imports
Oct 22, 2026
Merged

JNK234 merged 1 commit into
mainfrom
chore/scalafix-organize-imports

Conversation

@JNK234

@JNK234 JNK234 commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Makes sbt scalafixAll work. It had no rules configured and had never run.

  • .scalafix.conf with OrganizeImports (removeUnused off; Scala 3 does not report unused imports to scalafix), plus semanticdbEnabled.
  • -encoding utf-8 instead of us-ascii. The sources are UTF-8, so the em dash in the unknown-model warning reached users garbled, and semanticdb rejected 18 non-ASCII files as stale.
  • OrganizeImports applied across src/main and src/test. This changes import order only.

sbt test: 361 passing. sbt "scalafixAll --check": clean.

- Add .scalafix.conf (OrganizeImports, removeUnused off for Scala 3) and
  enable semanticdb so sbt scalafixAll runs; it had no rules and never ran
- Compile with -encoding utf-8: sources are UTF-8, and under us-ascii the
  em dash in the unknown-model warnings reached users garbled, and
  semanticdb fingerprints never matched (Stale SemanticDB on 18 files)
- Apply OrganizeImports across src/main and src/test (import order only)
@JNK234
JNK234 merged commit 2a747a1 into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant