scalafmt

scalafmt is a linter for Scala.

You can enable the scalafmt linter with:

trunk check enable scalafmt

Auto Enabling

scalafmt will be auto-enabled if a .scalafmt.conf config file is present.

Settings

scalafmt supports the following config files:

  • .scalafmt.conf

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Last updated