Questions tagged [scalafmt]

Questions about Scalafmt, a Scala Formatter

Scalafmt, a Scala Formatter - https://scalameta.org/scalafmt/

35 questions
0
votes
1 answer

SBT Plugin Published Locally Fails with an Error When Included in a Project

I have implemented a simple sbt plugin which I published locally to my .ivy repository. I wanted to use this plugin on one of my project for which I added it in my plugins.sbt file. I then tried to run this from the console and it failed with the…
joesan
  • 13,963
  • 27
  • 95
  • 232
0
votes
1 answer

scalafmt - docstrings conflict with significant indentation

The following piece of code: class Test: /** A very * useful * piece * of * documentation */ def helloWorld = 42 match case 42 => a() b() /** A very * useful * piece * of *…
Andrey Tyukin
  • 43,673
  • 4
  • 57
  • 93
0
votes
0 answers

scalafmt - format long chains of infix operators

I have a type declaration somewhat similar to this one: type AwesomeType[F[_], X, Y] = Foo[F] ?=> Bar[F, X] ?=> Baz[F, X] ?=> Waffle[X] ?=> F[Y] when I run scalafmt with align.preset = more, it attempts to squeeze this chain of…
Andrey Tyukin
  • 43,673
  • 4
  • 57
  • 93
0
votes
1 answer

Scalafmt in Scala projects

I like the clean code, I mean code formatted with for example scalafmt (https://scalameta.org/scalafmt/). I've always add the file .scalafmt.conf in the root folder of the project. Then, everytime I save a source file it gets formatted…
M.G.
  • 369
  • 1
  • 14
0
votes
1 answer

scalafmt class, methods params intendation

Is it possible in scalafmt to set intendation to be like in intellij formatter so just after ending of ( ie: case class SomeMessage( id: UUID ) I see only ability to setup tab numbers but its counted…
FrancMo
  • 2,459
  • 2
  • 19
  • 39
1 2
3