- Encoding: UTF-8
- Line ending: LF (Unix)
- Line length: 100 characters
- Indentation: 2 spaces
Tuubes uses scalafmt to check and format the code. We mostly follow the official Scala style guide.
To run scalafmt, open a Terminal in the TuubesCore directory and run:
./gradlew checkScalafmtto check the code./gradlew scalafmtto reformat the code
Scalafmt doesn't work with Java source files, please format your code carefully, with the Google's Java style.
The scalafmt configuration takes over everything else and scalafmt should be the primary formatting tool. The other files are provided to help you but they don't reflect the exact code style.