Skip to content

Use Scalafix for organizing imports#121

Merged
marcelluethi merged 5 commits into
dimwit-dev:mainfrom
marcelluethi:scalafix
Jul 1, 2026
Merged

Use Scalafix for organizing imports#121
marcelluethi merged 5 commits into
dimwit-dev:mainfrom
marcelluethi:scalafix

Conversation

@marcelluethi

Copy link
Copy Markdown
Contributor

This PR proposes to add scalaFix to the project, for the purpose of organizing imports.

In addition to adding scalafix, imports are organized and a problem with cyclic dependencies that made the compiler stumble is fixed. The problem is with the MemoryHelper.withLocalCleanup, which is now split into an imp function and a call directly from package.scala, such that the call dimwit.withLocalCleanup works unchanged.

withLocalCleanup gave a cyclic import error after cleaning up imports, showing that there was something fishy before. The error can be avoided by declaring a function directly in the package object, which references an impl function.
@marcelluethi marcelluethi requested a review from benikm91 June 27, 2026 19:52

@benikm91 benikm91 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marcelluethi marcelluethi merged commit 4483145 into dimwit-dev:main Jul 1, 2026
1 check 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.

2 participants