refactor: use scalafmt to format code

This commit is contained in:
Gleb Koval 2025-01-27 14:47:57 +00:00
parent 2b50e3e1f6
commit 252ed1c925
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
5 changed files with 39 additions and 24 deletions

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
[Makefile]
indent_style = tab
indent_size = 4

2
.scalafmt.conf Normal file
View File

@ -0,0 +1,2 @@
version = 3.8.6
runner.dialect = scala36

View File

@ -6,7 +6,8 @@ def main(args: Array[String]): Unit = {
println("hello WACC!")
args.headOption match {
case Some(expr) => parser.parse(expr) match {
case Some(expr) =>
parser.parse(expr) match {
case Success(x) => println(s"$expr = $x")
case Failure(msg) => println(msg)
}