- For Scala code, we strictly follow these coding and style guidelines:
Note: Databricks Style Guide will be preferred for conflict resolutions.
-
For formatting, scalafmt is used with the custom configuration (found in /dev/.scalafmt.conf)
- Set scalafmt as the formatter
- Detailed installation of
scalafmt
can be found here
-
There is also a Scala style check using scalastyle-config.xml, which is run automatically when you compile your project using
sbt
.