Skip to content

Show scalafmt configuration errors #837

@loveleif

Description

@loveleif

Errors in scalafmt configuration files cause an exception in spotless that does does not contain any information about what went wrong. Scalafmt provides this information and this is a request to bubble it up in spotless.

For example, a scalafmt configuration that contains an invalid field will result in an exception in spotless like this:

java.lang.reflect.InvocationTargetException
   ...
Caused by: java.util.NoSuchElementException: Either.right.value on Left
   at scala.util.Either$RightProjection.get(Either.scala:453
   ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions