Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 970 Bytes

File metadata and controls

22 lines (17 loc) · 970 Bytes

General

  • Encoding: UTF-8
  • Line ending: LF (Unix)
  • Line length: 100 characters
  • Indentation: 2 spaces

Scala

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:

  1. ./gradlew checkScalafmt to check the code
  2. ./gradlew scalafmt to reformat the code

Java

Scalafmt doesn't work with Java source files, please format your code carefully, with the Google's Java style.

Config files

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.